public class ReplServerStartDSMsg extends StartMsg
generationId, groupId, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ReplServerStartDSMsg(int serverId,
String serverURL,
org.forgerock.opendj.ldap.Dn baseDN,
int windowSize,
ServerState serverState,
long generationId,
boolean sslEncryption,
byte groupId,
int degradedStatusThreshold,
int weight,
int connectedDSNumber)
Create a ReplServerStartDSMsg.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.Dn |
getBaseDN()
Get the base DN from this ReplServerStartDSMsg.
|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
int |
getConnectedDSNumber()
Gets the number of directory servers connected to the replication server.
|
int |
getDegradedStatusThreshold()
Get the degraded status threshold value.
|
int |
getServerId()
Get the Server Id.
|
ServerState |
getServerState()
Get the serverState.
|
String |
getServerURL()
Get the server URL.
|
boolean |
getSSLEncryption()
Get the SSL encryption value for the server that created the
message.
|
int |
getWeight()
Gets the weight of the replication server.
|
int |
getWindowSize()
Get the window size for the server that created this message.
|
void |
setDegradedStatusThreshold(int degradedStatusThreshold)
Set the degraded status threshold (For test purpose).
|
String |
toString() |
getGenerationId, getGroupId, getVersion, setGroupId
generateMsg
public ReplServerStartDSMsg(int serverId, String serverURL, org.forgerock.opendj.ldap.Dn baseDN, int windowSize, ServerState serverState, long generationId, boolean sslEncryption, byte groupId, int degradedStatusThreshold, int weight, int connectedDSNumber)
serverId
- replication server idserverURL
- replication server URLbaseDN
- base DN for which the ReplServerStartDSMsg is created.windowSize
- The window size.serverState
- our ServerState for this baseDN.generationId
- The generationId for this server.sslEncryption
- Whether to continue using SSL to encrypt messages
after the start messages have been exchanged.groupId
- The group id of the RSdegradedStatusThreshold
- The degraded status thresholdweight
- The weight affected to the replication server.connectedDSNumber
- Number of currently connected DS to the
replication server.public int getServerId()
public String getServerURL()
public org.forgerock.opendj.ldap.Dn getBaseDN()
public ServerState getServerState()
public byte[] getBytes(short protocolVersion)
getBytes
in class ReplicationMsg
protocolVersion
- The protocol version to use for serialization. The version should
normally be older than the current one.null
if the message isn't supported
in that protocol version.public int getWindowSize()
public boolean getSSLEncryption()
public int getDegradedStatusThreshold()
public void setDegradedStatusThreshold(int degradedStatusThreshold)
degradedStatusThreshold
- The degraded status threshold to set.public int getWeight()
public int getConnectedDSNumber()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.