Rice Pastry API

rice.pastry
Class PastryNodeFactory

java.lang.Object
  extended by 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

Field Summary
protected  Environment environment
           
protected  Logger logger
           
protected  byte lSetSize
           
protected  byte rtBase
           
protected  byte rtMax
           
 
Constructor Summary
PastryNodeFactory(Environment env)
           
 
Method Summary
 Environment getEnvironment()
           
abstract  PastryNode newNode()
           
abstract  PastryNode newNode(Id nodeId)
           
abstract  PastryNode newNode(NodeHandle bootstrap)
          Deprecated. use newNode() then call PastryNode.boot(address);
abstract  PastryNode newNode(NodeHandle bootstrap, Id nodeId)
          Deprecated. use newNode(nodeId) then call PastryNode.boot(address);
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rtMax

protected final byte rtMax

lSetSize

protected final byte lSetSize

rtBase

protected final byte rtBase

environment

protected Environment environment

logger

protected Logger logger
Constructor Detail

PastryNodeFactory

public PastryNodeFactory(Environment env)
Method Detail

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 of
nodeId - 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()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection