Class InitializeRequestMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.InitializationMsg
-
- org.opends.server.replication.protocol.InitializeRequestMsg
-
public final class InitializeRequestMsg extends InitializationMsg
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, senderId
-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
COMPACT_MASK, COMPACT_TYPE_ADD, COMPACT_TYPE_DELETE, COMPACT_TYPE_MODIFY, COMPACT_TYPE_MODIFY_DN, COMPACT_TYPE_REPLICA_OFFLINE, MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Constructor Description InitializeRequestMsg(Dn baseDN, ReplicaId replicaId, ReplicaId 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.ReplicaIdgetSenderID()Get the server ID of the server that sent this message.voidsetInitWindow(int initWindow)Set the initWindow value.StringtoString()Get a string representation of this object.-
Methods inherited from class org.opends.server.replication.protocol.InitializationMsg
getDestination
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
-
-
-
Constructor Detail
-
InitializeRequestMsg
public InitializeRequestMsg(Dn baseDN, ReplicaId replicaId, ReplicaId destination, int initWindow)
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 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)
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
public String 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
public ReplicaId getSenderID()
Description copied from class:InitializationMsgGet the server ID of the server that sent this message.- Overrides:
getSenderIDin classInitializationMsg- Returns:
- the server id
-
-