public class ReplServerStartMsg extends StartMsg
generationId, groupId, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ReplServerStartMsg(int serverId,
String serverURL,
org.forgerock.opendj.ldap.Dn baseDN,
int windowSize,
ServerState serverState,
long generationId,
boolean sslEncryption,
byte groupId,
int degradedStatusThreshold)
Create a ReplServerStartMsg.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.Dn |
getBaseDN()
Get the base DN from this ReplServerStartMsg.
|
byte[] |
getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version.
|
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 |
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 ReplServerStartMsg(int serverId, String serverURL, org.forgerock.opendj.ldap.Dn baseDN, int windowSize, ServerState serverState, long generationId, boolean sslEncryption, byte groupId, int degradedStatusThreshold)
serverId
- replication server idserverURL
- replication server URLbaseDN
- base DN for which the ReplServerStartMsg 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 thresholdpublic 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.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.