public abstract class RoutableMsg extends ReplicationMsg
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).
Modifier and Type | Field and Description |
---|---|
static int |
ALL_SERVERS
Specifies all servers in the replication domain.
|
protected int |
destination
The destination server or servers of this message.
|
protected int |
senderID
The serverID of the server that sends this message.
|
static int |
THE_CLOSEST_SERVER
Inside a topology of servers in the same domain, it specifies
the server that is the "closest" to the sender.
|
static int |
UNKNOWN_SERVER
Specifies that no server is identified.
|
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
RoutableMsg()
Creates a routable message.
|
RoutableMsg(int serverID,
int destination)
Creates a routable message.
|
Modifier and Type | Method and Description |
---|---|
int |
getDestination()
Get the destination.
|
int |
getSenderID()
Get the server ID of the server that sent this message.
|
String |
toString() |
generateMsg, getBytes
public static final int UNKNOWN_SERVER
public static final int ALL_SERVERS
public static final int THE_CLOSEST_SERVER
protected int destination
protected int senderID
public RoutableMsg(int serverID, int destination)
serverID
- replication server iddestination
- replication server idpublic RoutableMsg()
public int getDestination()
public int getSenderID()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.