Rice Pastry API

rice.pastry.standard
Class StandardJoinProtocol

java.lang.Object
  |
  +--rice.pastry.standard.StandardJoinProtocol
All Implemented Interfaces:
MessageReceiver

public class StandardJoinProtocol
extends java.lang.Object
implements MessageReceiver

An implementation of a simple join protocol.

Version:
$Id: StandardJoinProtocol.java,v 1.19 2003/05/23 03:55:24 druschel Exp $
Author:
Peter Druschel, Andrew Ladd, Rongmei Zhang, Y. Charlie Hu

Constructor Summary
StandardJoinProtocol(rice.pastry.PastryNode ln, rice.pastry.NodeHandle lh, rice.pastry.security.PastrySecurityManager sm, rice.pastry.routing.RoutingTable rt, rice.pastry.leafset.LeafSet ls)
          Constructor.
 
Method Summary
 void broadcastRows(rice.pastry.join.JoinRequest jr)
          Broadcasts the route table rows.
 rice.pastry.messaging.Address getAddress()
          Get address.
 void receiveMessage(rice.pastry.messaging.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(rice.pastry.PastryNode ln,
                            rice.pastry.NodeHandle lh,
                            rice.pastry.security.PastrySecurityManager sm,
                            rice.pastry.routing.RoutingTable rt,
                            rice.pastry.leafset.LeafSet ls)
Constructor.

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

getAddress

public rice.pastry.messaging.Address getAddress()
Get address.

Returns:
gets the address.

receiveMessage

public void receiveMessage(rice.pastry.messaging.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(rice.pastry.join.JoinRequest jr)
Broadcasts the route table rows.

Parameters:
jr - the join row.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection