Rice Pastry API

rice.rm.testing
Class InsertMsg

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

public class InsertMsg
extends TestMessage
implements java.io.Serializable

Version:
$Id: InsertMsg.java,v 1.1 2003/05/09 19:27:37 animesh Exp $
Author:
Animesh Nandi
See Also:
Serialized Form

Field Summary
 
Fields inherited from class rice.rm.testing.TestMessage
_source
 
Constructor Summary
InsertMsg(rice.pastry.NodeHandle source, rice.pastry.messaging.Address address, rice.pastry.Id _objectKey, java.lang.Object _content, rice.pastry.security.Credentials authorCred)
           
 
Method Summary
 java.lang.Object getObject()
          Gets the object contained in this message
 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

InsertMsg

public InsertMsg(rice.pastry.NodeHandle source,
                 rice.pastry.messaging.Address address,
                 rice.pastry.Id _objectKey,
                 java.lang.Object _content,
                 rice.pastry.security.Credentials authorCred)
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

getObject

public java.lang.Object getObject()
Gets the object contained in this message

Returns:
object

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection