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 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Set<com.forgerock.opendj.util.HostPort>getAdminHostPorts()Returns all the admin host ports opened by this server.longgetGenerationId()Get the generation id RS is using.com.forgerock.opendj.discovery.GroupIdgetGroupId()Get the RS group id.com.forgerock.opendj.util.HostPortgetHostPort()Gets the replication host port.ProcessIdgetProcessId()Get the RS process id.intgetWeight()Get the RS weight.inthashCode()ReplicationServerIdreplicationServerId()Get the RS server id.StringtoString()
-
-
-
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 idrsHostPort- host port of the RSgenerationId- The generation id the RS is usinggroupId- RS group idprocessId- RS process idweight- RS weightadminHostPorts- 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
-
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
-
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
-
-