Class RSInfo


  • @Immutable
    public final class RSInfo
    extends Object
    This class holds information about a RS connected to the topology. This information is to be exchanged through the replication protocol in topology messages, to keep every member DS of the topology aware of the RS topology.
    • Constructor Detail

      • RSInfo

        public RSInfo​(ReplicationServerId rsId,
                      com.forgerock.opendj.util.HostPort rsHostPort,
                      long generationId,
                      com.forgerock.opendj.discovery.GroupId groupId,
                      ProcessId processId,
                      int weight,
                      Set<com.forgerock.opendj.util.HostPort> adminHostPorts)
        Creates a new instance of RSInfo with every given info.
        Parameters:
        rsId - The replication server id
        rsHostPort - host port of the RS
        generationId - The generation id the RS is using
        groupId - RS group id
        processId - RS process id
        weight - RS weight
        adminHostPorts - Admin ports supported by this server.
    • Method Detail

      • replicationServerId

        public ReplicationServerId replicationServerId()
        Get the RS server id.
        Returns:
        the RS server id
      • getGenerationId

        public long getGenerationId()
        Get the generation id RS is using.
        Returns:
        the generation id RS is using.
      • getGroupId

        public com.forgerock.opendj.discovery.GroupId getGroupId()
        Get the RS group id.
        Returns:
        The RS group id
      • getHostPort

        public com.forgerock.opendj.util.HostPort getHostPort()
        Gets the replication host port.
        Returns:
        the replication host port
      • getWeight

        public int getWeight()
        Get the RS weight.
        Returns:
        The RS weight
      • getAdminHostPorts

        public Set<com.forgerock.opendj.util.HostPort> getAdminHostPorts()
        Returns all the admin host ports opened by this server.
        Returns:
        all the admin host ports opened by this server
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object