Class RSInfo
- java.lang.Object
-
- org.opends.server.replication.common.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 Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Set<com.forgerock.opendj.util.HostPort>
getAdminEndpoints()
Returns all the admin host ports opened by this server.com.forgerock.opendj.util.HostPort
getChangelogEndpoint()
Gets the replication host port.GenerationId
getGenerationId()
Get the generation id RS is using.com.forgerock.opendj.discovery.GroupId
getGroupId()
Get the RS group id.ProcessId
getProcessId()
Get the RS process id.int
getWeight()
Get the RS weight.int
hashCode()
ReplicationServerId
replicationServerId()
Get the RS server id.String
toString()
-
-
-
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 idchangelogEndpoint
- host port to connect to the RSgenerationId
- The generation id the RS is usinggroupId
- RS group idprocessId
- RS process idweight
- RS weightadminEndpoints
- 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
-
getProcessId
public ProcessId getProcessId()
Get the RS process id.- Returns:
- The RS process id of the RS or an
ProcessId.newUnknownProcessId()
if it did not specify its process id.
-
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
-
-