Class InitializationMsg
java.lang.Object
org.opends.server.replication.protocol.ReplicationMsg
org.opends.server.replication.protocol.InitializationMsg
- Direct Known Subclasses:
DoneMsg, EntryMsg, ErrorMsg, InitializeRcvAckMsg, InitializeRequestMsg, InitializeTargetMsg
This is an abstract class of messages of the replication protocol for message that needs to contain information about
the server that send them and the destination servers to which they should be sent.
Initialization messages are used when initializing a new replica from an existing replica: total update messages are sent across the topology from the source replica to the target replica, possibly traversing one or two replication servers in the process (e.g. DS1 -> RS1 -> RS2 -> DS2). For this reason we consider them "routable".
Sender of an initialization message can be a DS or a RS (e.g, in case of Error message). Destination of an initialization message is always a DS.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReplicaIdThe destination server or servers of this message.protected ServerId<?> The serverID of the server that sends this message.Fields inherited from class ReplicationMsg
MSG_TYPE_DISK_ENCODING -
Constructor Summary
ConstructorsConstructorDescriptionCreates an initialization message.InitializationMsg(ServerId<?> sender, ReplicaId destination) Creates an initialization message. -
Method Summary
Methods inherited from class ReplicationMsg
decodeMsg, getBytes, isRetryable
-
Field Details
-
destination
The destination server or servers of this message. -
senderId
The serverID of the server that sends this message.
-
-
Constructor Details
-
InitializationMsg
-
InitializationMsg
public InitializationMsg()Creates an initialization message.
-
-
Method Details
-
getDestination
Get the destination. The value is a serverId, or ALL_SERVERS dedicated value.- Returns:
- the destination
-
getSenderID
Get the server ID of the server that sent this message.- Returns:
- the server id
-
toString
-