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 be unknown if the RS is too old to support process ID. Note that the process ID is not propagated by TopologyMsg.
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 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

      public boolean equals(Object obj)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      obj - the object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • replicationServerId

      public ReplicationServerId replicationServerId()
      Returns the value of the replicationServerId record component.
      Returns:
      the value of the replicationServerId record component
    • changelogEndpoint

      public com.forgerock.opendj.util.HostPort changelogEndpoint()
      Returns the value of the changelogEndpoint record component.
      Returns:
      the value of the changelogEndpoint record component
    • generationId

      public GenerationId generationId()
      Returns the value of the generationId record component.
      Returns:
      the value of the generationId record component
    • groupId

      public com.forgerock.opendj.discovery.GroupId groupId()
      Returns the value of the groupId record component.
      Returns:
      the value of the groupId record component
    • processId

      public ProcessId processId()
      Returns the value of the processId record component.
      Returns:
      the value of the processId record component
    • weight

      public int weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component
    • adminEndpoints

      public Set<com.forgerock.opendj.util.HostPort> adminEndpoints()
      Returns the value of the adminEndpoints record component.
      Returns:
      the value of the adminEndpoints record component