Record Class RSInfo
java.lang.Object
java.lang.Record
org.opends.server.replication.common.RSInfo
- Record Components:
replicationServerId- Replication server id of the RS.changelogEndpoint- Host port to connect to the RS.generationId- Generation Id of the RS.groupId- Group id of the RS.processId- Process id of the RS. May beunknownif the RS is too old to support process ID. Note that the process ID is not propagated byTopologyMsg.weight- The weight of the RS.It is important to keep the default value to 1 so that it is used as default value for an RS using protocol V3: this default value will be used in algorithms that use weight.
adminEndpoints- Admin host ports opened by this server.
public record RSInfo(ReplicationServerId replicationServerId, 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)
extends Record
This class holds information about an 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
ConstructorsConstructorDescriptionRSInfo(ReplicationServerId replicationServerId, 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) Canonical constructor. -
Method Summary
Modifier and TypeMethodDescriptionSet<com.forgerock.opendj.util.HostPort>Returns the value of theadminEndpointsrecord component.com.forgerock.opendj.util.HostPortReturns the value of thechangelogEndpointrecord component.booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenerationIdrecord component.com.forgerock.opendj.discovery.GroupIdgroupId()Returns the value of thegroupIdrecord component.inthashCode()Returns a hash code value for this object.Returns the value of theprocessIdrecord component.Returns the value of thereplicationServerIdrecord component.toString()Returns a string representation of this record class.intweight()Returns the value of theweightrecord component.
-
Constructor Details
-
RSInfo
public RSInfo(ReplicationServerId replicationServerId, 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) Canonical constructor.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
replicationServerId
Returns the value of thereplicationServerIdrecord component.- Returns:
- the value of the
replicationServerIdrecord component
-
changelogEndpoint
public com.forgerock.opendj.util.HostPort changelogEndpoint()Returns the value of thechangelogEndpointrecord component.- Returns:
- the value of the
changelogEndpointrecord component
-
generationId
Returns the value of thegenerationIdrecord component.- Returns:
- the value of the
generationIdrecord component
-
groupId
public com.forgerock.opendj.discovery.GroupId groupId()Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
processId
Returns the value of theprocessIdrecord component.- Returns:
- the value of the
processIdrecord component
-
weight
public int weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
adminEndpoints
Returns the value of theadminEndpointsrecord component.- Returns:
- the value of the
adminEndpointsrecord component
-