Rice Pastry API

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

Version:
$Id: RMMessage.java,v 1.9 2003/05/25 21:45:24 animesh Exp $
Author:
Animesh Nandi
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  rice.pastry.NodeHandle _source
          The ID of the source of this message.
 
Constructor Summary
RMMessage(rice.pastry.NodeHandle source, rice.pastry.messaging.Address address, rice.pastry.security.Credentials authorCred, int seqno)
          Constructor : Builds a new RM Message
 
Method Summary
 rice.pastry.security.Credentials getCredentials()
          Gets the author's credentials associated with this object
 int getSeqno()
           
 rice.pastry.NodeHandle getSource()
           
abstract  void handleDeliverMessage(rice.rm.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 rice.pastry.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(rice.pastry.NodeHandle source,
                 rice.pastry.messaging.Address address,
                 rice.pastry.security.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(rice.rm.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 rice.pastry.NodeHandle getSource()

getCredentials

public rice.pastry.security.Credentials getCredentials()
Gets the author's credentials associated with this object

Overrides:
getCredentials in class Message
Returns:
credentials

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection