rice.rm.messaging
Class RMMessage

java.lang.Object
  extended byrice.pastry.messaging.Message
      extended byrice.rm.messaging.RMMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RMMaintenanceMsg, RMRequestKeysMsg, RMResponseKeysMsg, RMTimeoutMsg

public abstract class RMMessage
extends Message
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class RMMessage.KEEntry
          This class will be used by the messaging system.
 
Field Summary
protected  int _seqno
          for debugging purposes only
protected  NodeHandle _source
          The ID of the source of this message.
 
Constructor Summary
RMMessage(NodeHandle source, Address address, Credentials authorCred, int seqno)
          Constructor : Builds a new RM Message
 
Method Summary
 Credentials getCredentials()
          Gets the author's credentials associated with this object
 int getSeqno()
           
 NodeHandle getSource()
           
abstract  void handleDeliverMessage(RMImpl rm)
          This method is called whenever the rm node receives a message for itself and wants to process it.
 
Methods inherited from class rice.pastry.messaging.Message
getDate, getDestination, getSenderId, getStream, hasPriority, setPriority, setSenderId, stamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_source

protected NodeHandle _source
The ID of the source of this message. Should be serializable.


_seqno

protected int _seqno
for debugging purposes only

Constructor Detail

RMMessage

public RMMessage(NodeHandle source,
                 Address address,
                 Credentials authorCred,
                 int seqno)
Constructor : Builds a new RM Message

Parameters:
source - the source of the message
address - RM Application address
authorCred - the credentials of the source
seqno - seuence number for debugging purposes only
Method Detail

handleDeliverMessage

public abstract void handleDeliverMessage(RMImpl rm)
This method is called whenever the rm node receives a message for itself and wants to process it. The processing is delegated by rm to the message.


getSeqno

public int getSeqno()

getSource

public NodeHandle getSource()

getCredentials

public Credentials getCredentials()
Gets the author's credentials associated with this object

Overrides:
getCredentials in class Message
Returns:
credentials





Imprint-Dataprotection