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, 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, 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.groupId()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, 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
-
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 thecomparemethod from their corresponding wrapper classes. -
hashCode
-
toString
-
replicaId
-
adminEndpoint
public com.forgerock.opendj.util.HostPort adminEndpoint()Returns the value of theadminEndpointrecord component.- Returns:
- the value of the
adminEndpointrecord component
-
rsId
-
generationId
Returns the value of thegenerationIdrecord component.- Returns:
- the value of the
generationIdrecord component
-
status
-
groupId
-
processId
-
refUrls
-
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
-