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_VERSION
when 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
ConstructorDescriptionDSInfo
(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.HostPort
Returns the value of theadminEndpoint
record component.Set<com.forgerock.opendj.util.HostPort>
Returns the value of theadminEndpoints
record component.Returns a new instance ofDSInfo
with the specified replication server Id.Returns the value of theeclIncludes
record component.Returns the value of theeclIncludesForDeletes
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.Map<ConnectionSecurity,
Set<com.forgerock.opendj.util.HostPort>> Returns the value of theldapEndpoints
record component.Returns the value of theprocessId
record component.short
Returns the value of theprotocolVersion
record component.refUrls()
Returns the value of therefUrls
record component.Returns the value of thereplicaId
record component.rsId()
Returns the value of thersId
record component.status()
Returns the value of thestatus
record 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 ofDSInfo
with the specified replication server Id.- Parameters:
rsId
- the replication server Id to set on the new DSInfo object.- Returns:
- a new instance of
DSInfo
with 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 thereplicaId
record component.- Returns:
- the value of the
replicaId
record component
-
adminEndpoint
public com.forgerock.opendj.util.HostPort adminEndpoint()Returns the value of theadminEndpoint
record component.- Returns:
- the value of the
adminEndpoint
record component
-
rsId
Returns the value of thersId
record component.- Returns:
- the value of the
rsId
record component
-
generationId
Returns the value of thegenerationId
record component.- Returns:
- the value of the
generationId
record component
-
status
Returns the value of thestatus
record component.- Returns:
- the value of the
status
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
-
refUrls
Returns the value of therefUrls
record component.- Returns:
- the value of the
refUrls
record component
-
eclIncludes
Returns the value of theeclIncludes
record component.- Returns:
- the value of the
eclIncludes
record component
-
eclIncludesForDeletes
Returns the value of theeclIncludesForDeletes
record component.- Returns:
- the value of the
eclIncludesForDeletes
record component
-
protocolVersion
public short protocolVersion()Returns the value of theprotocolVersion
record component.- Returns:
- the value of the
protocolVersion
record component
-
adminEndpoints
Returns the value of theadminEndpoints
record component.- Returns:
- the value of the
adminEndpoints
record component
-
ldapEndpoints
Returns the value of theldapEndpoints
record component.- Returns:
- the value of the
ldapEndpoints
record component
-