public class ReplServerStartMsg extends StartMsg
generationId, groupId, MAX_WINDOW_SIZE, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ReplServerStartMsg(int serverId,
HostPort serverURL,
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.
|
int |
getServerId()
Get the Server Id.
|
ServerState |
getServerState()
Get the serverState.
|
HostPort |
getServerURL()
Get the server URL.
|
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 serverURL, Dn baseDN, 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.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 getServerURL()
public 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 boolean getSSLEncryption()
public int getDegradedStatusThreshold()
public void setDegradedStatusThreshold(int degradedStatusThreshold)
degradedStatusThreshold
- The degraded status threshold to set.Copyright 2010-2020 ForgeRock AS.