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.
|
Method Summary |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
source
public NodeId source
target
public Id target
HelloMsg
public HelloMsg(Address addr,
NodeId src,
Id tgt,
int mid)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2001 - Rice Pastry