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 changelogEndpoint,
                      GenerationId generationId,
                      com.forgerock.opendj.discovery.GroupId groupId,
                      ProcessId processId,
                      int weight,
                      Set<com.forgerock.opendj.util.HostPort> adminEndpoints)
        Creates a new instance of RSInfo with every given info.
        Parameters:
        rsId - The replication server id
        changelogEndpoint - host port to connect to the RS
        generationId - The generation id the RS is using
        groupId - RS group id
        processId - RS process id
        weight - RS weight
        adminEndpoints - Admin ports supported by this server.
    • Method Detail

      • replicationServerId

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

        public GenerationId 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
      • getChangelogEndpoint

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

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

        public Set<com.forgerock.opendj.util.HostPort> getAdminEndpoints()
        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