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 RandomNodeIdFactory

    java.lang.Object
      rice.pastry.standard.RandomNodeIdFactory

All Implemented Interfaces:
  NodeIdFactory

    public class RandomNodeIdFactory

extends java.lang.Object
implements NodeIdFactory

Constructs random node ids by SHA'ing consecutive numbers, with random starting value.

Version:
  $Id: RandomNodeIdFactory.java 3507 2006-12-21 13:18:37Z jeffh $
Author:
  Andrew Ladd, Peter Druschel

Field Summary
`protected Logger` | `logger`

Constructor Summary
`RandomNodeIdFactory(Environment env)` Constructor.

Method Summary
`Id` | `generateNodeId()` generate a nodeId

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

Field Detail

### logger

    protected Logger logger

Constructor Detail

### RandomNodeIdFactory

    public RandomNodeIdFactory(Environment env)

  Constructor.

Method Detail

### generateNodeId

    public Id generateNodeId()

  generate a nodeId

  Specified by:
    `generateNodeId` in interface `NodeIdFactory`
  Returns:
    the new nodeId

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.