rice.rm.messaging
Class RMMessage
java.lang.Object
rice.pastry.messaging.Message
rice.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_source
protected NodeHandle _source
- The ID of the source of this message.
Should be serializable.
_seqno
protected int _seqno
- for debugging purposes only
RMMessage
public RMMessage(NodeHandle source,
Address address,
Credentials authorCred,
int seqno)
- Constructor : Builds a new RM Message
- Parameters:
source
- the source of the messageaddress
- RM Application addressauthorCred
- the credentials of the sourceseqno
- seuence number for debugging purposes only
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