Rice Pastry API

rice.pastry.standard
Class PeriodicLeafSetProtocol

java.lang.Object
  extended byrice.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.6 2005/05/17 15:46:25 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  java.util.Random random
          DESCRIBE THE FIELD
protected  RoutingTable routeTable
          DESCRIBE THE FIELD
protected  PastrySecurityManager security
          DESCRIBE THE FIELD
static boolean verbose
          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


random

protected java.util.Random random
DESCRIBE THE FIELD


lastTimeReceivedBLS

protected java.util.Hashtable lastTimeReceivedBLS
NodeHandle -> Long remembers the TIME when we received a BLS from that NodeHandle


verbose

public static final boolean verbose
DESCRIBE THE FIELD

See Also:
Constant Field Values

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.


Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection