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).
Sender of a routable message can be a DS or a RS (e.g, in case of Error message). Destination of a routable message is always a DS.
Modifier and Type | Field and Description |
---|---|
protected ReplicaId |
destination
The destination server or servers of this message.
|
protected ServerId<?> |
senderId
The serverID of the server that sends this message.
|
MSG_TYPE_DISK_ENCODING
Constructor and Description |
---|
RoutableMsg()
Creates a routable message.
|
RoutableMsg(ServerId<?> sender,
ReplicaId destination)
Creates a routable message.
|
Modifier and Type | Method and Description |
---|---|
ReplicaId |
getDestination()
Get the destination.
|
ServerId<?> |
getSenderID()
Get the server ID of the server that sent this message.
|
String |
toString() |
decodeMsg, getBytes, isRetryable
protected ReplicaId destination
protected ServerId<?> senderId
public RoutableMsg(ServerId<?> sender, ReplicaId destination)
sender
- replication server iddestination
- replication server idpublic RoutableMsg()
Copyright 2010-2022 ForgeRock AS.