Class InitializeRequestMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.RoutableMsg
-
- org.opends.server.replication.protocol.InitializeRequestMsg
-
public class InitializeRequestMsg extends RoutableMsg
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.RoutableMsg
ALL_SERVERS, destination, senderID, THE_CLOSEST_SERVER, UNKNOWN_SERVER
-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Constructor Description InitializeRequestMsg(DN baseDN, int serverID, int destination, int initWindow)Creates a InitializeRequestMsg message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DNgetBaseDN()Get the base DN from this InitializeRequestMsg.byte[]getBytes(short version)Serializes the PDU using the provided replication protocol version.intgetInitWindow()Return the initWindow value.voidsetInitWindow(int initWindow)Set the initWindow value.StringtoString()Get a string representation of this object.-
Methods inherited from class org.opends.server.replication.protocol.RoutableMsg
getDestination, getSenderID
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
generateMsg, isEncodableFor
-
-
-
-
Constructor Detail
-
InitializeRequestMsg
public InitializeRequestMsg(DN baseDN, int serverID, int destination, int initWindow)
Creates a InitializeRequestMsg message.- Parameters:
baseDN- the base DN of the replication domain.destination- destination of this messageserverID- serverID of the server that will send this messageinitWindow- initialization window for flow control
-
-
Method Detail
-
getBaseDN
public DN getBaseDN()
Get the base DN from this InitializeRequestMsg.- Returns:
- the base DN from this InitializeRequestMsg.
-
getBytes
public byte[] getBytes(short version)
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:
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
public String toString()
Get a string representation of this object.- Overrides:
toStringin classRoutableMsg- 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.
-
-