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