Class InitializeRequestMsg
java.lang.Object
org.opends.server.replication.protocol.ReplicationMsg
org.opends.server.replication.protocol.InitializationMsg
org.opends.server.replication.protocol.InitializeRequestMsg
This message is part of the replication protocol. This message is sent by a server to another server in order to
request this other server to do an export to the server sender of this message.
-
Field Summary
Fields inherited from class org.opends.server.replication.protocol.InitializationMsg
destination, senderIdFields inherited from class org.opends.server.replication.protocol.ReplicationMsg
MSG_TYPE_DISK_ENCODING -
Constructor Summary
ConstructorsConstructorDescriptionInitializeRequestMsg(Dn baseDN, ReplicaId replicaId, ReplicaId destination, int initWindow) Creates a InitializeRequestMsg message. -
Method Summary
Modifier and TypeMethodDescriptionGet the base DN from this InitializeRequestMsg.byte[]getBytes(short version) Serializes the PDU using the provided replication protocol version.intReturn the initWindow value.Get the server ID of the server that sent this message.voidsetInitWindow(int initWindow) Set the initWindow value.toString()Get a string representation of this object.Methods inherited from class org.opends.server.replication.protocol.InitializationMsg
getDestinationMethods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
Constructor Details
-
InitializeRequestMsg
Creates a InitializeRequestMsg message.- Parameters:
baseDN- the base DN of the replication domain.destination- destination of this messagereplicaId- replica id of the server that will send this messageinitWindow- initialization window for flow control
-
-
Method Details
-
getBaseDN
Get the base DN from this InitializeRequestMsg.- Returns:
- the base DN from this InitializeRequestMsg.
-
getBytes
public byte[] getBytes(short version) Description copied from class:ReplicationMsgSerializes 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:
version- 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.
-
toString
Get a string representation of this object.- Overrides:
toStringin classInitializationMsg- Returns:
- A string representation of this object.
-
getInitWindow
public int getInitWindow()Return the initWindow value.- Returns:
- the initWindow.
-
setInitWindow
public void setInitWindow(int initWindow) Set the initWindow value.- Parameters:
initWindow- The initialization window.
-
getSenderID
Description copied from class:InitializationMsgGet the server ID of the server that sent this message.- Overrides:
getSenderIDin classInitializationMsg- Returns:
- the server id
-