Class InitializeRcvAckMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.RoutableMsg
-
- org.opends.server.replication.protocol.InitializeRcvAckMsg
-
public class InitializeRcvAckMsg extends RoutableMsg
This message is used by LDAP server or by Replication Servers to update the send window of the remote entities. A receiving entity should create such a message with a given credit when it wants to open the send window of the remote entity. A LDAP or Replication Server should increase its send window when receiving such a 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 InitializeRcvAckMsg(int sender, int destination, int numAck)Create a new message..
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes(short protocolVersion)Serializes the PDU using the provided replication protocol version.intgetNumAck()Get the number of message acknowledged by this message.StringtoString()-
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
-
InitializeRcvAckMsg
public InitializeRcvAckMsg(int sender, int destination, int numAck)Create a new message..- Parameters:
sender- The server ID of the server that send this message.destination- The destination server or servers of this message.numAck- The number of acknowledged messages. The window will be increase by this credit number.
-
-
Method Detail
-
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.
-
toString
public String toString()
- Overrides:
toStringin classRoutableMsg
-
getNumAck
public int getNumAck()
Get the number of message acknowledged by this message.- Returns:
- the number of message acknowledged by this message.
-
-