rice.pastry
Class PastryNodeFactory
java.lang.Object
rice.pastry.PastryNodeFactory
- Direct Known Subclasses:
- TransportPastryNodeFactory
public abstract class PastryNodeFactory
- extends java.lang.Object
The interface to an object which can construct PastryNodes.
- Version:
- $Id: PastryNodeFactory.java 4131 2008-02-27 18:27:49Z 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)
- Deprecated. use newNode() then call PastryNode.boot(address);
- 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()
throws java.io.IOException
- Throws:
java.io.IOException
newNode
public abstract PastryNode newNode(NodeHandle bootstrap,
Id nodeId)
- Deprecated. use newNode(nodeId) then call PastryNode.boot(address);
- 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
newNode
public abstract PastryNode newNode(Id nodeId)
throws java.io.IOException
- Throws:
java.io.IOException
getEnvironment
public Environment getEnvironment()
Copyright © 2001-2005 - Rice Pastry.