|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.tutorial.appsocket.MyApp
A very simple application.
Field Summary | |
protected Endpoint |
endpoint
The Endpoint represents the underlieing node. |
protected Node |
node
The node we were constructed on. |
Constructor Summary | |
MyApp(Node node,
IdFactory factory)
Constructor for MyApp. |
Method Summary | |
void |
deliver(Id id,
Message message)
Called when we receive a message. |
boolean |
forward(RouteMessage message)
Called a message travels along your path. |
Node |
getNode()
Getter for the node. |
void |
sendMyMsgDirect(NodeHandle nh)
Called to directly send a message to the nh |
java.lang.String |
toString()
DESCRIBE THE METHOD |
void |
update(NodeHandle handle,
boolean joined)
Called when you hear about a new neighbor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Endpoint endpoint
protected Node node
Constructor Detail |
public MyApp(Node node, IdFactory factory)
node
- DESCRIBE THE PARAMETERfactory
- DESCRIBE THE PARAMETERMethod Detail |
public Node getNode()
public void sendMyMsgDirect(NodeHandle nh)
nh
- DESCRIBE THE PARAMETERpublic void deliver(Id id, Message message)
deliver
in interface Application
id
- DESCRIBE THE PARAMETERmessage
- DESCRIBE THE PARAMETERpublic void update(NodeHandle handle, boolean joined)
update
in interface Application
handle
- DESCRIBE THE PARAMETERjoined
- DESCRIBE THE PARAMETERpublic boolean forward(RouteMessage message)
forward
in interface Application
message
- DESCRIBE THE PARAMETER
public java.lang.String toString()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |