@Immutable public final class DSInfo extends Object
Constructor and Description |
---|
DSInfo(ReplicaId replicaId,
HostPort hostPort,
ReplicationServerId rsId,
long generationId,
ServerStatus status,
GroupId groupId,
Collection<String> refUrls,
Collection<String> eclIncludes,
Collection<String> eclIncludesForDeletes,
short protocolVersion)
Creates a new instance of DSInfo with every given info.
|
Modifier and Type | Method and Description |
---|---|
DSInfo |
cloneWithReplicationServerId(ReplicationServerId rsId)
Returns a new instance of
DSInfo with the specified replication server Id. |
boolean |
equals(Object obj)
Test if the passed object is equal to this one.
|
Set<String> |
getEclIncludes()
Get the entry attributes to be included in the ECL.
|
Set<String> |
getEclIncludesForDeletes()
Get the entry attributes to be included in the ECL for delete operations.
|
long |
getGenerationId()
Get the generation id DS is using.
|
GroupId |
getGroupId()
Get the DS group id.
|
HostPort |
getHostPort()
Get the host port.
|
short |
getProtocolVersion()
Get the protocol version supported by this server.
|
List<String> |
getRefUrls()
Get the DS exported URLs for referrals.
|
ReplicaId |
getReplicaId()
Get the replica id.
|
ReplicationServerId |
getRsId()
Get the RS id the DS is connected to.
|
ServerStatus |
getStatus()
Get the DS status.
|
int |
hashCode()
Computes hash code for this object instance.
|
String |
toString()
Returns a string representation of the DS info.
|
public DSInfo(ReplicaId replicaId, HostPort hostPort, ReplicationServerId rsId, long generationId, ServerStatus status, GroupId groupId, Collection<String> refUrls, Collection<String> eclIncludes, Collection<String> eclIncludesForDeletes, short protocolVersion)
replicaId
- The DS replica idhostPort
- the DS host portrsId
- The RS id the DS is connected togenerationId
- The generation id the DS is usingstatus
- The DS statusgroupId
- DS group idrefUrls
- DS exported referrals URLseclIncludes
- The list of entry attributes to include in the ECL.eclIncludesForDeletes
- The list of entry attributes to include in the ECL for deletes.protocolVersion
- Protocol version supported by this server.public ReplicaId getReplicaId()
public HostPort getHostPort()
public ReplicationServerId getRsId()
public long getGenerationId()
public ServerStatus getStatus()
public GroupId getGroupId()
public List<String> getRefUrls()
public Set<String> getEclIncludes()
public Set<String> getEclIncludesForDeletes()
public short getProtocolVersion()
public DSInfo cloneWithReplicationServerId(ReplicationServerId rsId)
DSInfo
with the specified replication server Id.rsId
- the replication server Id to set on the new DSInfo object.DSInfo
with the specified replication server Id.public boolean equals(Object obj)
public int hashCode()
Copyright 2010-2022 ForgeRock AS.