Rice Pastry API

rice.rm.testing
Class TestMessage

java.lang.Object
  |
  +--rice.pastry.messaging.Message
        |
        +--rice.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

Version:
$Id: TestMessage.java,v 1.1 2003/05/06 06:53:27 animesh Exp $
Author:
Atul Singh, Animesh Nandi
See Also:
Serialized Form

Field Summary
protected  rice.pastry.NodeHandle _source
          The ID of the source of this message.
 
Constructor Summary
TestMessage(rice.pastry.NodeHandle source, rice.pastry.messaging.Address address, rice.pastry.security.Credentials authorCred)
           
 
Method Summary
 rice.pastry.security.Credentials getCredentials()
          Gets the credentials of the sender.
 rice.pastry.NodeHandle getSource()
           
abstract  void handleDeliverMessage(rice.rm.testing.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 rice.pastry.NodeHandle _source
The ID of the source of this message. Should be serializable.

Constructor Detail

TestMessage

public TestMessage(rice.pastry.NodeHandle source,
                   rice.pastry.messaging.Address address,
                   rice.pastry.security.Credentials authorCred)
Method Detail

handleDeliverMessage

public abstract void handleDeliverMessage(rice.rm.testing.RMRegrTestApp testApp)

getSource

public rice.pastry.NodeHandle getSource()

getCredentials

public rice.pastry.security.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.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection