Class ReplServerStartDSMsg
java.lang.Object
org.opends.server.replication.protocol.ReplicationMsg
org.opends.server.replication.protocol.StartMsg
org.opends.server.replication.protocol.ReplServerStartDSMsg
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, MAX_WINDOW_SIZE, protocolVersion
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
MSG_TYPE_DISK_ENCODING
-
Constructor Summary
ConstructorsConstructorDescriptionReplServerStartDSMsg
(ReplicationServerId rsId, com.forgerock.opendj.util.HostPort changelogEndpoint, Dn baseDN, ServerState serverState, GenerationId generationId, boolean sslEncryption, GroupId groupId, int weight, int connectedDSNumber) Create a ReplServerStartDSMsg. -
Method Summary
Modifier and TypeMethodDescriptionReturns the base DN from this ReplServerStartDSMsg.byte[]
getBytes
(short protocolVersion) Serializes the PDU using the provided replication protocol version.int
Returns the number of directory servers connected to the replication server.int
Returns the degraded status threshold value.Returns the Server Id.Returns the serverState.boolean
Returns the SSL encryption value for the server that created the message.int
Returns the weight of the replication server.toString()
Methods inherited from class org.opends.server.replication.protocol.StartMsg
getGenerationId, getGroupId, getVersion, setGroupId
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
Constructor Details
-
ReplServerStartDSMsg
public ReplServerStartDSMsg(ReplicationServerId rsId, com.forgerock.opendj.util.HostPort changelogEndpoint, Dn baseDN, ServerState serverState, GenerationId generationId, boolean sslEncryption, GroupId groupId, int weight, int connectedDSNumber) Create a ReplServerStartDSMsg.- Parameters:
rsId
- replication server idchangelogEndpoint
- replication server host portbaseDN
- 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 RSweight
- The weight affected to the replication server.connectedDSNumber
- Number of currently connected DS to the replication server.
-
-
Method Details
-
getServerId
Returns the Server Id.- Returns:
- the Server Id
-
getBaseDN
Returns the base DN from this ReplServerStartDSMsg.- Returns:
- the base DN from this ReplServerStartDSMsg
-
getServerState
Returns the serverState.- Returns:
- the serverState
-
getBytes
public byte[] getBytes(short protocolVersion) Description copied from class:ReplicationMsg
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:
getBytes
in 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
null
if the message isn't supported in that protocol version.
-
getSSLEncryption
public boolean getSSLEncryption()Returns 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()Returns the degraded status threshold value.- Returns:
- the degraded status threshold value
-
toString
-
getWeight
public int getWeight()Returns the weight of the replication server.- Returns:
- the weight of the replication server
-
getConnectedDSNumber
public int getConnectedDSNumber()Returns the number of directory servers connected to the replication server.- Returns:
- the number of directory servers connected to the replication server
-