Rice Pastry API

rice.pastry.standard
Class RandomNodeIdFactory

java.lang.Object
  extended byrice.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 3274 2006-05-15 16:17:47Z jeffh $
Author:
Andrew Ladd, Peter Druschel

Field Summary
protected  Logger logger
          DESCRIBE THE FIELD
 
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
DESCRIBE THE FIELD

Constructor Detail

RandomNodeIdFactory

public RandomNodeIdFactory(Environment env)
Constructor.

Parameters:
env - DESCRIBE THE PARAMETER
Method Detail

generateNodeId

public Id generateNodeId()
generate a nodeId

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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection