rice.pastry.standard
Class StandardJoinProtocol

java.lang.Object
  extended byrice.pastry.standard.StandardJoinProtocol
All Implemented Interfaces:
MessageReceiver

public class StandardJoinProtocol
extends java.lang.Object
implements MessageReceiver

An implementation of a simple join protocol.


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.
 Address getAddress()
          Get address.
 void receiveMessage(Message msg)
          Receives a message from the outside world.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardJoinProtocol

public StandardJoinProtocol(PastryNode ln,
                            NodeHandle lh,
                            PastrySecurityManager sm,
                            RoutingTable rt,
                            LeafSet ls)
Constructor.

Parameters:
lh - the local node handle.
sm - the Pastry security manager.
Method Detail

getAddress

public Address getAddress()
Get address.

Returns:
gets the address.

receiveMessage

public void receiveMessage(Message msg)
Receives a message from the outside world.

Specified by:
receiveMessage in interface MessageReceiver
Parameters:
msg - the message that was received.

broadcastRows

public void broadcastRows(JoinRequest jr)
Broadcasts the route table rows.

Parameters:
jr - the join row.





Imprint-Dataprotection