Class ReplServerStartDSMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.StartMsg
-
- org.opends.server.replication.protocol.ReplServerStartDSMsg
-
public class ReplServerStartDSMsg extends StartMsg
Message sent by a replication server to a directory server in reply to the ServerStartMsg.
-
-
Field Summary
-
Fields inherited from class org.opends.server.replication.protocol.StartMsg
generationId, groupId, protocolVersion
-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Constructor Description ReplServerStartDSMsg(int serverId, String serverURL, DN baseDN, int windowSize, ServerState serverState, long generationId, boolean sslEncryption, byte groupId, int degradedStatusThreshold, int weight, int connectedDSNumber)Create a ReplServerStartDSMsg.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DNgetBaseDN()Get the base DN from this ReplServerStartDSMsg.byte[]getBytes(short protocolVersion)Serializes the PDU using the provided replication protocol version.intgetConnectedDSNumber()Gets the number of directory servers connected to the replication server.intgetDegradedStatusThreshold()Get the degraded status threshold value.intgetServerId()Get the Server Id.ServerStategetServerState()Get the serverState.StringgetServerURL()Get the server URL.booleangetSSLEncryption()Get the SSL encryption value for the server that created the message.intgetWeight()Gets the weight of the replication server.intgetWindowSize()Get the window size for the server that created this message.voidsetDegradedStatusThreshold(int degradedStatusThreshold)Set the degraded status threshold (For test purpose).StringtoString()-
Methods inherited from class org.opends.server.replication.protocol.StartMsg
getGenerationId, getGroupId, getVersion, setGroupId
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
generateMsg, isEncodableFor
-
-
-
-
Constructor Detail
-
ReplServerStartDSMsg
public ReplServerStartDSMsg(int serverId, String serverURL, DN baseDN, int windowSize, ServerState serverState, long generationId, boolean sslEncryption, byte groupId, int degradedStatusThreshold, int weight, int connectedDSNumber)Create a ReplServerStartDSMsg.- Parameters:
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.
-
-
Method Detail
-
getServerId
public int getServerId()
Get the Server Id.- Returns:
- the server id
-
getServerURL
public String getServerURL()
Get the server URL.- Returns:
- the server URL
-
getBaseDN
public DN getBaseDN()
Get the base DN from this ReplServerStartDSMsg.- Returns:
- the base DN from this ReplServerStartDSMsg.
-
getServerState
public ServerState getServerState()
Get the serverState.- Returns:
- Returns the serverState.
-
getBytes
public byte[] getBytes(short protocolVersion)
Serializes the PDU using the provided replication protocol version. WARNING: should be overwritten by a PDU (sub class) we want to support older protocol version serialization for.- Specified by:
getBytesin classReplicationMsg- Parameters:
protocolVersion- The protocol version to use for serialization. The version should normally be older than the current one.- Returns:
- The encoded PDU, or
nullif the message isn't supported in that protocol version.
-
getWindowSize
public int getWindowSize()
Get the window size for the server that created this message.- Returns:
- The window size for the server that created this message.
-
getSSLEncryption
public boolean getSSLEncryption()
Get the SSL encryption value for the server that created the message.- Returns:
- The SSL encryption value for the server that created the message.
-
getDegradedStatusThreshold
public int getDegradedStatusThreshold()
Get the degraded status threshold value.- Returns:
- The degraded status threshold value.
-
setDegradedStatusThreshold
public void setDegradedStatusThreshold(int degradedStatusThreshold)
Set the degraded status threshold (For test purpose).- Parameters:
degradedStatusThreshold- The degraded status threshold to set.
-
getWeight
public int getWeight()
Gets the weight of the replication server.- Returns:
- The weight of the replication server.
-
getConnectedDSNumber
public int getConnectedDSNumber()
Gets the number of directory servers connected to the replication server.- Returns:
- The number of directory servers connected to the replication server.
-
-