|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.client.PastryAppl rice.pastry.standard.StandardJoinProtocol
public class StandardJoinProtocol
An implementation of a simple join protocol.
Field Summary | |
---|---|
protected LeafSet |
leafSet
|
protected NodeHandle |
localHandle
|
protected RoutingTable |
routeTable
|
Fields inherited from class rice.pastry.client.PastryAppl |
---|
address, deserializer, instance, logger, receiver, thePastryNode |
Constructor Summary | |
---|---|
StandardJoinProtocol(PastryNode ln,
NodeHandle lh,
RoutingTable rt,
LeafSet ls)
Constructor. |
|
StandardJoinProtocol(PastryNode ln,
NodeHandle lh,
RoutingTable rt,
LeafSet ls,
MessageDeserializer md)
|
Method Summary | |
---|---|
void |
broadcastRows(JoinRequest jr)
Broadcasts the route table rows. |
boolean |
deliverWhenNotReady()
We always want to receive messages. |
int |
getAddress()
Get address. |
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 |
---|
accept, connect, destroy, enrouteMessage, getLeafSet, getNodeHandle, getNodeId, getRoutingTable, isClosest, leafSetChange, notifyReady, receiveMessageInternal, receiveSocket, register, routeMsg, routeMsgDirect, routeSetChange, setDeserializer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NodeHandle localHandle
protected RoutingTable routeTable
protected LeafSet leafSet
Constructor Detail |
---|
public StandardJoinProtocol(PastryNode ln, NodeHandle lh, RoutingTable rt, LeafSet ls)
lh
- the local node handle.sm
- the Pastry security manager.public StandardJoinProtocol(PastryNode ln, NodeHandle lh, RoutingTable rt, LeafSet ls, MessageDeserializer md)
Method Detail |
---|
public int getAddress()
getAddress
in class PastryAppl
public void receiveMessage(Message msg)
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 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 |