Record Class DSInfo
java.lang.Object
java.lang.Record
org.opends.server.replication.common.DSInfo
- Record Components:
replicaId- DS replica idadminEndpoint- The admin endpoint to connect to this DSrsId- Server id of the RS that the DS is connected togenerationId- DS Generation Idstatus- DS StatusgroupId- Group idprocessId- DS Process IdrefUrls- DS exported referrals URLseclIncludes- The set of entry attributes to include in the ECLeclIncludesForDeletes- The set of entry attributes to include in the ECL for delete operationsprotocolVersion- Protocol version.ProtocolVersion.UNKNOWN_VERSIONwhen the protocol version is not known (too old version).adminEndpoints- Admin host ports supported by this server.ldapEndpoints- LDAP host ports supported by this server.
public record DSInfo(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, ReplicationServerId rsId, GenerationId generationId, ServerStatus status, com.forgerock.opendj.discovery.GroupId groupId, ProcessId processId, Set<String> refUrls, Set<String> eclIncludes, Set<String> eclIncludesForDeletes, short protocolVersion, Set<com.forgerock.opendj.util.HostPort> adminEndpoints, Map<ConnectionSecurity,Set<com.forgerock.opendj.util.HostPort>> ldapEndpoints)
extends Record
This class holds information about a DS connected to the topology. This information is to be exchanged through the
replication protocol in topology messages, to keep every member (RS or DS) of the topology aware of the DS topology.
-
Constructor Summary
ConstructorsConstructorDescriptionDSInfo(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, ReplicationServerId rsId, GenerationId generationId, ServerStatus status, com.forgerock.opendj.discovery.GroupId groupId, ProcessId processId, Set<String> refUrls, Set<String> eclIncludes, Set<String> eclIncludesForDeletes, short protocolVersion, Set<com.forgerock.opendj.util.HostPort> adminEndpoints, Map<ConnectionSecurity, Set<com.forgerock.opendj.util.HostPort>> ldapEndpoints) Canonical constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.forgerock.opendj.util.HostPortReturns the value of theadminEndpointrecord component.Set<com.forgerock.opendj.util.HostPort>Returns the value of theadminEndpointsrecord component.Returns a new instance ofDSInfowith the specified replication server Id.Returns the value of theeclIncludesrecord component.Returns the value of theeclIncludesForDeletesrecord 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.Map<ConnectionSecurity,Set<com.forgerock.opendj.util.HostPort>> Returns the value of theldapEndpointsrecord component.Returns the value of theprocessIdrecord component.shortReturns the value of theprotocolVersionrecord component.refUrls()Returns the value of therefUrlsrecord component.Returns the value of thereplicaIdrecord component.rsId()Returns the value of thersIdrecord component.status()Returns the value of thestatusrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
DSInfo
public DSInfo(ReplicaId replicaId, com.forgerock.opendj.util.HostPort adminEndpoint, ReplicationServerId rsId, GenerationId generationId, ServerStatus status, com.forgerock.opendj.discovery.GroupId groupId, ProcessId processId, Set<String> refUrls, Set<String> eclIncludes, Set<String> eclIncludesForDeletes, short protocolVersion, Set<com.forgerock.opendj.util.HostPort> adminEndpoints, Map<ConnectionSecurity, Set<com.forgerock.opendj.util.HostPort>> ldapEndpoints) Canonical constructor.- Parameters:
replicaId- DS replica idadminEndpoint- The admin endpoint to connect to this DSrsId- Server id of the RS that the DS is connected togenerationId- DS Generation Idstatus- DS StatusgroupId- Group idprocessId- DS Process IdrefUrls- DS exported referrals URLseclIncludes- The set of entry attributes to include in the ECLeclIncludesForDeletes- The set of entry attributes to include in the ECL for delete operationsprotocolVersion- Protocol version.adminEndpoints- Admin host ports supported by this server.ldapEndpoints- LDAP host ports supported by this server.
-
-
Method Details
-
cloneWithReplicationServerId
Returns a new instance ofDSInfowith the specified replication server Id.- Parameters:
rsId- the replication server Id to set on the new DSInfo object.- Returns:
- a new instance of
DSInfowith the specified replication server Id.
-
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. -
replicaId
Returns the value of thereplicaIdrecord component.- Returns:
- the value of the
replicaIdrecord component
-
adminEndpoint
public com.forgerock.opendj.util.HostPort adminEndpoint()Returns the value of theadminEndpointrecord component.- Returns:
- the value of the
adminEndpointrecord component
-
rsId
Returns the value of thersIdrecord component.- Returns:
- the value of the
rsIdrecord component
-
generationId
Returns the value of thegenerationIdrecord component.- Returns:
- the value of the
generationIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord 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
-
refUrls
Returns the value of therefUrlsrecord component.- Returns:
- the value of the
refUrlsrecord component
-
eclIncludes
Returns the value of theeclIncludesrecord component.- Returns:
- the value of the
eclIncludesrecord component
-
eclIncludesForDeletes
Returns the value of theeclIncludesForDeletesrecord component.- Returns:
- the value of the
eclIncludesForDeletesrecord component
-
protocolVersion
public short protocolVersion()Returns the value of theprotocolVersionrecord component.- Returns:
- the value of the
protocolVersionrecord component
-
adminEndpoints
Returns the value of theadminEndpointsrecord component.- Returns:
- the value of the
adminEndpointsrecord component
-
ldapEndpoints
Returns the value of theldapEndpointsrecord component.- Returns:
- the value of the
ldapEndpointsrecord component
-