public class ReplServerStartDSMsg extends StartMsg
generationId, groupId, MAX_WINDOW_SIZE, protocolVersion
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
ReplServerStartDSMsg(int serverId,
HostPort serverURL,
Dn baseDN,
ServerState serverState,
long generationId,
boolean sslEncryption,
byte groupId,
int degradedStatusThreshold,
int weight,
int connectedDSNumber)
Create a ReplServerStartDSMsg.
|
Modifier and Type | Method and Description |
---|---|
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.
|
HostPort |
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.
|
String |
toString() |
getGenerationId, getGroupId, getVersion, setGroupId
generateMsg
public ReplServerStartDSMsg(int serverId, HostPort serverURL, Dn baseDN, 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.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 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 int getWeight()
public int getConnectedDSNumber()
Copyright 2010-2020 ForgeRock AS.