Rice Pastry API

rice.pastry
Class PastryNodeFactory

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

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(NodeHandle bootstrap)
          Call this to construct a new node of the type chosen by the factory.
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.
 
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)
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 of
nodeId - The nodeId of the new node

getEnvironment

public Environment getEnvironment()

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection