Constructor and Description |
---|
DSInfo(int dsId,
String dsUrl,
int rsId,
long generationId,
ServerStatus status,
boolean assuredFlag,
AssuredMode assuredMode,
byte safeDataLevel,
byte 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(int 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.
|
AssuredMode |
getAssuredMode()
Get the DS assured mode (relevant if DS has assured replication enabled).
|
int |
getDsId()
Get the DS id.
|
String |
getDsUrl()
Get the DS URL.
|
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.
|
byte |
getGroupId()
Get the DS group id.
|
short |
getProtocolVersion()
Get the protocol version supported by this server.
|
List<String> |
getRefUrls()
Get the DS exported URLs for referrals.
|
int |
getRsId()
Get the RS id the DS is connected to.
|
byte |
getSafeDataLevel()
Get the DS safe data level (relevant if assured mode is safe data).
|
ServerStatus |
getStatus()
Get the DS status.
|
int |
hashCode()
Computes hash code for this object instance.
|
boolean |
isAssured()
Tells if the DS has assured replication enabled.
|
String |
toString()
Returns a string representation of the DS info.
|
public DSInfo(int dsId, String dsUrl, int rsId, long generationId, ServerStatus status, boolean assuredFlag, AssuredMode assuredMode, byte safeDataLevel, byte groupId, Collection<String> refUrls, Collection<String> eclIncludes, Collection<String> eclIncludesForDeletes, short protocolVersion)
dsId
- The DS iddsUrl
- Url of the DSrsId
- The RS id the DS is connected togenerationId
- The generation id the DS is usingstatus
- The DS statusassuredFlag
- DS assured replication enabled or notassuredMode
- DS assured modesafeDataLevel
- DS safe data levelgroupId
- 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 int getDsId()
public int getRsId()
public long getGenerationId()
public ServerStatus getStatus()
public boolean isAssured()
public AssuredMode getAssuredMode()
public byte getSafeDataLevel()
public byte getGroupId()
public List<String> getRefUrls()
public Set<String> getEclIncludes()
public Set<String> getEclIncludesForDeletes()
public short getProtocolVersion()
public DSInfo cloneWithReplicationServerId(int 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 int hashCode()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.