Rice Pastry API

rice.rm.testing
Class HeartbeatMsg

java.lang.Object
  |
  +--rice.pastry.messaging.Message
        |
        +--rice.rm.testing.TestMessage
              |
              +--rice.rm.testing.HeartbeatMsg
All Implemented Interfaces:
java.io.Serializable

public class HeartbeatMsg
extends TestMessage
implements java.io.Serializable

Version:
$Id: HeartbeatMsg.java,v 1.1 2003/05/06 06:53:56 animesh Exp $
Author:
Animesh Nandi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.rm.testing.TestMessage
_source
 
Constructor Summary
HeartbeatMsg(rice.pastry.NodeHandle source, rice.pastry.messaging.Address address, rice.pastry.Id _objectKey, rice.pastry.security.Credentials authorCred)
          Constructor : Builds a new Heartbeat Message
 
Method Summary
 rice.pastry.Id getObjectKey()
          Gets the objectKey of the object.
 void handleDeliverMessage(rice.rm.testing.RMRegrTestApp testApp)
          This method is called whenever the rm node receives a message for itself and wants to process it.
 
Methods inherited from class rice.rm.testing.TestMessage
getCredentials, getSource
 
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
 

Constructor Detail

HeartbeatMsg

public HeartbeatMsg(rice.pastry.NodeHandle source,
                    rice.pastry.messaging.Address address,
                    rice.pastry.Id _objectKey,
                    rice.pastry.security.Credentials authorCred)
Constructor : Builds a new Heartbeat Message

Method Detail

handleDeliverMessage

public void handleDeliverMessage(rice.rm.testing.RMRegrTestApp testApp)
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.

Specified by:
handleDeliverMessage in class TestMessage

getObjectKey

public rice.pastry.Id getObjectKey()
Gets the objectKey of the object.

Returns:
objectKey

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection