|
Rice Pastry 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
An implementation of a simple join protocol.
| Field Summary | |
protected Credentials |
cred
DESCRIBE THE FIELD |
protected LeafSet |
leafSet
DESCRIBE THE FIELD |
protected NodeHandle |
localHandle
DESCRIBE THE FIELD |
protected RoutingTable |
routeTable
DESCRIBE THE FIELD |
protected PastrySecurityManager |
security
DESCRIBE THE FIELD |
| Fields inherited from class rice.pastry.client.PastryAppl |
address, instance, 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()
Gets the Credentials attribute of the StandardJoinProtocol object |
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, 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.ln - DESCRIBE THE PARAMETERrt - DESCRIBE THE PARAMETERls - DESCRIBE THE PARAMETER| Method Detail |
public Address getAddress()
getAddress in class PastryApplpublic Credentials getCredentials()
getCredentials in class PastryApplprotected void setReady()
public void receiveMessage(Message msg)
receiveMessage in interface MessageReceiverreceiveMessage in class PastryApplmsg - the message that was received.public void broadcastRows(JoinRequest jr)
jr - the join row.public void messageForAppl(Message msg)
messageForAppl in class PastryApplmsg - DESCRIBE THE PARAMETERpublic boolean deliverWhenNotReady()
deliverWhenNotReady in class PastryAppl
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||