darx
Class DarxMessage

java.lang.Object
  extended by 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.
 
Method Summary
(package private)  java.io.Serializable getContents()
           
(package private)  java.lang.String getSenderName()
           
(package private)  int getSerial()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 message
sn - the identity of the sender
num - the ordering number of the encapsulated message
Method Detail

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.