Class DoneMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.RoutableMsg
-
- org.opends.server.replication.protocol.DoneMsg
-
public class DoneMsg extends RoutableMsg
This message is part of the replication protocol. This message is sent by a server to one or several other servers after the last entry sent in the context of a total update and signals to the server that receives it that the export is now finished.
-
-
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 DoneMsg(int serverID, int i)Creates a 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.-
Methods inherited from class org.opends.server.replication.protocol.RoutableMsg
getDestination, getSenderID, toString
-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
generateMsg, isEncodableFor
-
-
-
-
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.
-
-