Class RoutableMsg
- java.lang.Object
-
- org.opends.server.replication.protocol.ReplicationMsg
-
- org.opends.server.replication.protocol.RoutableMsg
-
- Direct Known Subclasses:
DoneMsg,EntryMsg,ErrorMsg,InitializeRcvAckMsg,InitializeRequestMsg,InitializeTargetMsg
public abstract class RoutableMsg extends ReplicationMsg
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.Routable messages are used when initializing a new replica from an existing replica: the 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).
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_SERVERSSpecifies all servers in the replication domain.protected intdestinationThe destination server or servers of this message.protected intsenderIDThe serverID of the server that sends this message.static intTHE_CLOSEST_SERVERInside a topology of servers in the same domain, it specifies the server that is the "closest" to the sender.static intUNKNOWN_SERVERSpecifies that no server is identified.-
Fields inherited from class org.opends.server.replication.protocol.ReplicationMsg
MSG_TYPE_DISK_ENCODING
-
-
Constructor Summary
Constructors Constructor Description RoutableMsg()Creates a routable message.RoutableMsg(int serverID, int destination)Creates a routable message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDestination()Get the destination.intgetSenderID()Get the server ID of the server that sent this message.StringtoString()-
Methods inherited from class org.opends.server.replication.protocol.ReplicationMsg
generateMsg, getBytes, isEncodableFor
-
-
-
-
Field Detail
-
UNKNOWN_SERVER
public static final int UNKNOWN_SERVER
Specifies that no server is identified.- See Also:
- Constant Field Values
-
ALL_SERVERS
public static final int ALL_SERVERS
Specifies all servers in the replication domain.- See Also:
- Constant Field Values
-
THE_CLOSEST_SERVER
public static final int THE_CLOSEST_SERVER
Inside a topology of servers in the same domain, it specifies the server that is the "closest" to the sender.- See Also:
- Constant Field Values
-
destination
protected int destination
The destination server or servers of this message.
-
senderID
protected int senderID
The serverID of the server that sends this message.
-
-