rice.pastry.standard
Class RandomNodeIdFactory
java.lang.Object
rice.pastry.standard.RandomNodeIdFactory
- All Implemented Interfaces:
- NodeIdFactory
public class RandomNodeIdFactory
- extends Object
- implements NodeIdFactory
Constructs random node ids by SHA'ing consecutive numbers, with random
starting value.
- Version:
- $Id: RandomNodeIdFactory.java 3613 2007-02-15 14:45:14Z jstewart $
- Author:
- Andrew Ladd, Peter Druschel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
RandomNodeIdFactory
public RandomNodeIdFactory(Environment env)
- Constructor.
generateNodeId
public Id generateNodeId()
- generate a nodeId
- Specified by:
generateNodeId in interface NodeIdFactory
- Returns:
- the new nodeId
Copyright © 2010. All Rights Reserved.