rice.pastry
Class PastryNodeFactory
java.lang.Object
rice.pastry.PastryNodeFactory
- Direct Known Subclasses:
- DistPastryNodeFactory, TransportPastryNodeFactory
public abstract class PastryNodeFactory
- extends java.lang.Object
The interface to an object which can construct PastryNodes.
- Version:
- $Id: PastryNodeFactory.java 3816 2007-08-01 17:54:53Z jeffh $
- Author:
- Andrew Ladd, Alan Mislove, Merziyah Poonawala, Abhishek Ray
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rtMax
protected final byte rtMax
lSetSize
protected final byte lSetSize
rtBase
protected final byte rtBase
environment
protected Environment environment
logger
protected Logger logger
PastryNodeFactory
public PastryNodeFactory(Environment env)
newNode
public abstract PastryNode newNode(NodeHandle bootstrap)
- Call this to construct a new node of the type chosen by the factory.
- Parameters:
bootstrap
- The node handle to bootstrap off of
newNode
public abstract PastryNode newNode(NodeHandle bootstrap,
Id nodeId)
- Call this to construct a new node of the type chosen by the factory, with
the given nodeId.
- Parameters:
bootstrap
- The node handle to bootstrap off ofnodeId
- The nodeId of the new node
getEnvironment
public Environment getEnvironment()
Copyright © 2001-2005 - Rice Pastry.