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 PeriodicLeafSetProtocol

    java.lang.Object
      rice.pastry.standard.PeriodicLeafSetProtocol

All Implemented Interfaces:
  MessageReceiver

public class PeriodicLeafSetProtocol
extends java.lang.Object
implements MessageReceiver

An implementation of a periodic-style leafset protocol

Version:
  $Id: PeriodicLeafSetProtocol.java,v 1.9 2005/06/07 22:02:14 jeffh Exp $
Author:
  Alan Mislove

Field Summary
`static int` | `CHECK_LIVENESS_PERIOD` DESCRIBE THE FIELD
`protected java.util.Hashtable` | `lastTimeReceivedBLS` NodeHandle -> Long remembers the TIME when we received a BLS from that NodeHandle
`protected LeafSet` | `leafSet` DESCRIBE THE FIELD
`protected NodeHandle` | `localHandle` DESCRIBE THE FIELD
`protected PastryNode` | `localNode` DESCRIBE THE FIELD
`static int` | `PING_NEIGHBOR_PERIOD` Related to rapidly determining direct neighbor liveness.
`protected RoutingTable` | `routeTable` DESCRIBE THE FIELD
`protected PastrySecurityManager` | `security` DESCRIBE THE FIELD

Constructor Summary
`PeriodicLeafSetProtocol(PastryNode ln, NodeHandle local, PastrySecurityManager sm, LeafSet ls, RoutingTable rt)` Builds a periodic leafset protocol

Method Summary
`protected void` | `broadcastAll()` Broadcast the leaf set to all members of the local leaf set.
`Address` | `getAddress()` Gets the address.
`void` | `receiveMessage(Message msg)` Receives messages.

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

Field Detail

### localHandle

    protected NodeHandle localHandle

  DESCRIBE THE FIELD

### localNode

    protected PastryNode localNode

  DESCRIBE THE FIELD

### security

    protected PastrySecurityManager security

  DESCRIBE THE FIELD

### leafSet

    protected LeafSet leafSet

  DESCRIBE THE FIELD

### routeTable

    protected RoutingTable routeTable

  DESCRIBE THE FIELD

### lastTimeReceivedBLS

    protected java.util.Hashtable lastTimeReceivedBLS

  NodeHandle -> Long remembers the TIME when we received a BLS from that NodeHandle

### PING_NEIGHBOR_PERIOD

    public static final int PING_NEIGHBOR_PERIOD

  Related to rapidly determining direct neighbor liveness.

  See Also:
    Constant Field Values

### CHECK_LIVENESS_PERIOD

    public static final int CHECK_LIVENESS_PERIOD

  DESCRIBE THE FIELD

  See Also:
    Constant Field Values

Constructor Detail

### PeriodicLeafSetProtocol

    public PeriodicLeafSetProtocol(PastryNode ln,
                                   NodeHandle local,
                                   PastrySecurityManager sm,
                                   LeafSet ls,
                                   RoutingTable rt)

  Builds a periodic leafset protocol

Parameters:
  `ln` - DESCRIBE THE PARAMETER
  `local` - DESCRIBE THE PARAMETER
  `sm` - DESCRIBE THE PARAMETER
  `ls` - DESCRIBE THE PARAMETER
  `rt` - DESCRIBE THE PARAMETER

Method Detail

### getAddress

    public Address getAddress()

  Gets the address.

  Returns:
    the address.

### receiveMessage

    public void receiveMessage(Message msg)

  Receives messages.

  Specified by:
    `receiveMessage` in interface `MessageReceiver`
  Parameters:
    `msg` - the message.

### broadcastAll

    protected void broadcastAll()

  Broadcast the leaf set to all members of the local leaf set.

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.