Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry.standard
Class StandardJoinProtocol

    java.lang.Object
      rice.pastry.standard.StandardJoinProtocol

All Implemented Interfaces:
  MessageReceiver

Direct Known Subclasses:
  ConsistentJoinProtocol

public class StandardJoinProtocol
extends java.lang.Object
implements MessageReceiver

An implementation of a simple join protocol.

Version:
  $Id: StandardJoinProtocol.java,v 1.29 2005/06/09 21:54:10 jeffh Exp $
Author:
  Peter Druschel, Andrew Ladd, Rongmei Zhang, Y. Charlie Hu

Field Summary
`protected Address` | `address` DESCRIBE THE FIELD
`protected LeafSet` | `leafSet` DESCRIBE THE FIELD
`protected NodeHandle` | `localHandle` DESCRIBE THE FIELD
`protected PastryNode` | `localNode` DESCRIBE THE FIELD
`protected RoutingTable` | `routeTable` DESCRIBE THE FIELD
`protected PastrySecurityManager` | `security` DESCRIBE THE FIELD

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.
`protected void` | `setReady()` Sets the Ready attribute of the StandardJoinProtocol object

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### localNode

    protected PastryNode localNode

  DESCRIBE THE FIELD

### localHandle

    protected NodeHandle localHandle

  DESCRIBE THE FIELD

### security

    protected PastrySecurityManager security

  DESCRIBE THE FIELD

### routeTable

    protected RoutingTable routeTable

  DESCRIBE THE FIELD

### leafSet

    protected LeafSet leafSet

  DESCRIBE THE FIELD

### address

    protected Address address

  DESCRIBE THE FIELD

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.
  `ln` - DESCRIBE THE PARAMETER
  `rt` - DESCRIBE THE PARAMETER
  `ls` - DESCRIBE THE PARAMETER

Method Detail

### getAddress

    public Address getAddress()

  Get address.

  Returns:
    gets the address.

### setReady

    protected void setReady()

  Sets the Ready attribute of the StandardJoinProtocol object

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.