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 beunknown
if 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
ConstructorDescriptionRSInfo
(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 theadminEndpoints
record component.com.forgerock.opendj.util.HostPort
Returns the value of thechangelogEndpoint
record component.boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegenerationId
record component.com.forgerock.opendj.discovery.GroupId
groupId()
Returns the value of thegroupId
record component.int
hashCode()
Returns a hash code value for this object.Returns the value of theprocessId
record component.Returns the value of thereplicationServerId
record component.toString()
Returns a string representation of this record class.int
weight()
Returns the value of theweight
record 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 thereplicationServerId
record component.- Returns:
- the value of the
replicationServerId
record component
-
changelogEndpoint
public com.forgerock.opendj.util.HostPort changelogEndpoint()Returns the value of thechangelogEndpoint
record component.- Returns:
- the value of the
changelogEndpoint
record component
-
generationId
Returns the value of thegenerationId
record component.- Returns:
- the value of the
generationId
record component
-
groupId
public com.forgerock.opendj.discovery.GroupId groupId()Returns the value of thegroupId
record component.- Returns:
- the value of the
groupId
record component
-
processId
Returns the value of theprocessId
record component.- Returns:
- the value of the
processId
record component
-
weight
public int weight()Returns the value of theweight
record component.- Returns:
- the value of the
weight
record component
-
adminEndpoints
Returns the value of theadminEndpoints
record component.- Returns:
- the value of the
adminEndpoints
record component
-