rice.rm.testing
Class TestMessage

java.lang.Object
  extended byrice.pastry.messaging.Message
      extended byrice.rm.testing.TestMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HeartbeatMsg, InsertMsg, InsertResponseMsg, InvariantCheckMsg, ObjectInsertionMsg, ObjectRefreshMsg, RefreshMsg, ReplicateMsg, ReplicateResponseMsg, ReplicateTimeoutMsg

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

See Also:
Serialized Form

Field Summary
protected  NodeHandle _source
          The ID of the source of this message.
 
Constructor Summary
TestMessage(NodeHandle source, Address address, Credentials authorCred)
           
 
Method Summary
 Credentials getCredentials()
          Gets the credentials of the sender.
 NodeHandle getSource()
           
abstract  void handleDeliverMessage(RMRegrTestApp testApp)
           
 
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.

Constructor Detail

TestMessage

public TestMessage(NodeHandle source,
                   Address address,
                   Credentials authorCred)
Method Detail

handleDeliverMessage

public abstract void handleDeliverMessage(RMRegrTestApp testApp)

getSource

public NodeHandle getSource()

getCredentials

public Credentials getCredentials()
Description copied from class: Message
Gets the credentials of the sender.

Overrides:
getCredentials in class Message
Returns:
credentials or null if the sender has no credentials.





Imprint-Dataprotection