Class DoneMsg
java.lang.Object
org.opends.server.replication.protocol.ReplicationMsg
org.opends.server.replication.protocol.InitializationMsg
org.opends.server.replication.protocol.DoneMsg
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.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
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes
(short protocolVersion) Serializes the PDU using the provided replication protocol version.Get the server ID of the server that sent this message.Methods inherited from class org.opends.server.replication.protocol.InitializationMsg
getDestination, toString
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
decodeMsg, isRetryable
-
Constructor Details
-
DoneMsg
Creates a message.- Parameters:
sender
- The sender server of this message.destination
- The server or servers targeted by this message.
-
-
Method Details
-
getBytes
public byte[] getBytes(short protocolVersion) Description copied from class:ReplicationMsg
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:
getBytes
in 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
null
if the message isn't supported in that protocol version.
-
getSenderID
Description copied from class:InitializationMsg
Get the server ID of the server that sent this message.- Overrides:
getSenderID
in classInitializationMsg
- Returns:
- the server id
-