public class ReplServerStartMsg extends StartMsg
generationId, groupId, MAX_WINDOW_SIZE, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ReplServerStartMsg(int serverId,
HostPort rsHostPort,
Dn baseDN,
ServerState serverState,
long generationId,
boolean sslEncryption,
byte groupId,
int degradedStatusThreshold)
Create a ReplServerStartMsg.
|
Modifier and Type | Method and Description |
---|---|
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.
|
HostPort |
getHostPort()
Get the host port.
|
int |
getServerId()
Get the Server Id.
|
ServerState |
getServerState()
Get the serverState.
|
boolean |
getSSLEncryption()
Get the SSL encryption value for the server that created the message.
|
void |
setDegradedStatusThreshold(int degradedStatusThreshold)
Set the degraded status threshold (For test purpose).
|
String |
toString() |
getGenerationId, getGroupId, getVersion, setGroupId
generateMsg
public ReplServerStartMsg(int serverId, HostPort rsHostPort, Dn baseDN, ServerState serverState, long generationId, boolean sslEncryption, byte groupId, int degradedStatusThreshold)
serverId
- replication server idrsHostPort
- replication server host portbaseDN
- base DN for which the ReplServerStartMsg is created.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 HostPort getHostPort()
public Dn getBaseDN()
public ServerState getServerState()
public byte[] getBytes(short protocolVersion)
ReplicationMsg
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 boolean getSSLEncryption()
public int getDegradedStatusThreshold()
public void setDegradedStatusThreshold(int degradedStatusThreshold)
degradedStatusThreshold
- The degraded status threshold to set.Copyright 2010-2018 ForgeRock AS.