| 
 | ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.client.PastryAppl
rice.pastry.standard.StandardJoinProtocol
public class StandardJoinProtocol
An implementation of a simple join protocol.
| Field Summary | |
|---|---|
| protected  Credentials | cred | 
| protected  LeafSet | leafSet | 
| protected  NodeHandle | localHandle | 
| protected  RoutingTable | routeTable | 
| protected  PastrySecurityManager | security | 
| Fields inherited from class rice.pastry.client.PastryAppl | 
|---|
| address, instance, logger, thePastryNode | 
| Constructor Summary | |
|---|---|
| StandardJoinProtocol(PastryNode ln,
                     NodeHandle lh,
                     PastrySecurityManager sm,
                     RoutingTable rt,
                     LeafSet ls)Constructor. | |
| Method Summary | |
|---|---|
|  void | broadcastRows(JoinRequest jr)Broadcasts the route table rows. | 
|  boolean | deliverWhenNotReady()We always want to receive messages. | 
|  Address | getAddress()Get address. | 
|  Credentials | getCredentials()Returns the credentials of this application. | 
|  void | messageForAppl(Message msg)Should not be called becasue we are overriding the receiveMessage() interface anyway. | 
|  void | receiveMessage(Message msg)Receives a message from the outside world. | 
| protected  void | setReady()Can be overloaded to do additional things before going ready. | 
| Methods inherited from class rice.pastry.client.PastryAppl | 
|---|
| destroy, enrouteMessage, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, leafSetChange, notifyReady, register, registerReceiver, routeMsg, routeMsgDirect, routeSetChange, sendMessage | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected NodeHandle localHandle
protected PastrySecurityManager security
protected RoutingTable routeTable
protected LeafSet leafSet
protected Credentials cred
| Constructor Detail | 
|---|
public StandardJoinProtocol(PastryNode ln,
                            NodeHandle lh,
                            PastrySecurityManager sm,
                            RoutingTable rt,
                            LeafSet ls)
lh - the local node handle.sm - the Pastry security manager.| Method Detail | 
|---|
public Address getAddress()
getAddress in class PastryAppl
public void receiveMessage(Message msg)
receiveMessage in interface MessageReceiver
receiveMessage in class PastryAppl
msg - the message that was received.protected void setReady()
public void broadcastRows(JoinRequest jr)
jr - the join row.public void messageForAppl(Message msg)
messageForAppl in class PastryAppl
msg - the message that is arriving.public Credentials getCredentials()
PastryAppl
getCredentials in class PastryAppl
public boolean deliverWhenNotReady()
deliverWhenNotReady in class PastryAppl
| 
 | ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||