|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.tutorial.lesson4.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)
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 |
routeMyMsg(Id id)
Called to route a message to the id |
void |
routeMyMsgDirect(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)
node - DESCRIBE THE PARAMETER| Method Detail |
public Node getNode()
public void routeMyMsg(Id id)
id - DESCRIBE THE PARAMETERpublic void routeMyMsgDirect(NodeHandle nh)
nh - DESCRIBE THE PARAMETER
public void deliver(Id id,
Message message)
deliver in interface Applicationid - DESCRIBE THE PARAMETERmessage - DESCRIBE THE PARAMETER
public void update(NodeHandle handle,
boolean joined)
update in interface Applicationhandle - DESCRIBE THE PARAMETERjoined - DESCRIBE THE PARAMETERpublic boolean forward(RouteMessage message)
forward in interface Applicationmessage - 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 | ||||||||||