| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.tutorial.lesson3.MyApp
A very simple application.
| Field Summary | |
protected  Endpoint | 
endpoint
The Endpoint represents the underlieing node.  | 
| 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.  | 
 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
| Constructor Detail | 
public MyApp(Node node)
node - DESCRIBE THE PARAMETER| Method Detail | 
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 | ||||||||||