Rice Pastry API

rice.pastry.testing
Class HelloMsg

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

class HelloMsg
extends Message

DO NOT declare HelloMsg inside HelloWorldApp, even though it is conceptually a private object. Message implements serializable. If HelloMsg is declared inside, then it acquires an implicit reference to HelloWorldApp to access its fields and methods, and barfs at runtime complaining that HelloWorldApp is not serializable.


Field Summary
 NodeId source
           
 Id target
           
 
Constructor Summary
HelloMsg(Address addr, NodeId src, Id tgt, int mid)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class rice.pastry.messaging.Message
getCredentials, getDate, getDestination, getSenderId, getStream, hasPriority, setPriority, setSenderId, stamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

public NodeId source

target

public Id target
Constructor Detail

HelloMsg

public HelloMsg(Address addr,
                NodeId src,
                Id tgt,
                int mid)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Rice Pastry API

Copyright © 2001 - Rice Pastry