ePOST API

rice.pastry.standard
Class RandomNodeIdFactory

java.lang.Object
  extended by 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 2808 2005-11-22 14:38:49Z jeffh $
Author:
Andrew Ladd, Peter Druschel

Field Summary
protected  Logger logger
           
 
Constructor Summary
RandomNodeIdFactory(Environment env)
          Constructor.
 
Method Summary
 NodeId 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 NodeId generateNodeId()
generate a nodeId

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

ePOST API

Copyright © 2001-2005 - Rice Pastry.