darx
Class DarxMessage
java.lang.Object
darx.DarxMessage
- All Implemented Interfaces:
- java.io.Serializable
public class DarxMessage
- extends java.lang.Object
- implements java.io.Serializable
This is the encapsulator provided for communications between replication
groups.
The supported agents are considered to communicate between themselves through
messages. In order to propagate this information to the replicas, every
transmitted message is encapsulated in this object. Thus it is possible to
handle the problems associated to replication: mistaken duplication,
disordering, ...
- See Also:
- Serialized Form
Constructor Summary |
DarxMessage(java.io.Serializable msg,
java.lang.String sn,
int num)
Constructs a new instance of DarxMessage . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DarxMessage
public DarxMessage(java.io.Serializable msg,
java.lang.String sn,
int num)
- Constructs a new instance of
DarxMessage
.
- Parameters:
msg
- the body of the encapsulated messagesn
- the identity of the sendernum
- the ordering number of the encapsulated message
getContents
java.io.Serializable getContents()
- Returns:
- the body of the encapsulated message.
getSenderName
java.lang.String getSenderName()
- Returns:
- the identity of the sender.
getSerial
int getSerial()
- Returns:
- the ordering number of the encapsulated message.