Rice Pastry API

rice.pastry.standard
Class RandomNodeIdFactory

java.lang.Object
  |
  +--rice.pastry.standard.RandomNodeIdFactory
All Implemented Interfaces:
NodeIdFactory
Direct Known Subclasses:
RandomRingNodeIdFactory

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,v 1.6 2002/09/07 17:10:53 druschel Exp $
Author:
Andrew Ladd, Peter Druschel

Constructor Summary
RandomNodeIdFactory()
          Constructor.
 
Method Summary
 rice.pastry.NodeId generateNodeId()
          generate a nodeId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomNodeIdFactory

public RandomNodeIdFactory()
Constructor.

Method Detail

generateNodeId

public rice.pastry.NodeId generateNodeId()
generate a nodeId

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

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection