|
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
An implementation of a simple join protocol.
Field Summary | |
protected LeafSet |
leafSet
DESCRIBE THE FIELD |
protected NodeHandle |
localHandle
DESCRIBE THE FIELD |
protected RoutingTable |
routeTable
DESCRIBE THE FIELD |
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)
Constructor for StandardJoinProtocol. |
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, update |
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.ln
- DESCRIBE THE PARAMETERrt
- DESCRIBE THE PARAMETERls
- DESCRIBE THE PARAMETERpublic StandardJoinProtocol(PastryNode ln, NodeHandle lh, RoutingTable rt, LeafSet ls, MessageDeserializer md)
ln
- DESCRIBE THE PARAMETERlh
- DESCRIBE THE PARAMETERrt
- DESCRIBE THE PARAMETERls
- DESCRIBE THE PARAMETERmd
- DESCRIBE THE PARAMETERMethod Detail |
public int getAddress()
getAddress
in class PastryAppl
protected void setReady()
public void receiveMessage(Message msg)
receiveMessage
in class PastryAppl
msg
- the message that was received.public void broadcastRows(JoinRequest jr)
jr
- the join row.public void messageForAppl(Message msg)
messageForAppl
in class PastryAppl
msg
- 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 |