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.2 2005/03/11 00:58:03 jeffh Exp $
Author:
  Alan Mislove

Field Summary
`protected LeafSet` | `leafSet` DESCRIBE THE FIELD
`protected NodeHandle` | `localHandle` DESCRIBE THE FIELD
`protected PastryNode` | `localNode` DESCRIBE THE FIELD
`protected java.util.Random` | `random` DESCRIBE THE FIELD
`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

### random

    protected java.util.Random random

  DESCRIBE THE FIELD

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.