Rice Pastry API

rice.pastry.direct
Class DirectPastryNodeFactory

java.lang.Object
  |
  +--rice.pastry.direct.DirectPastryNodeFactory
All Implemented Interfaces:
PastryNodeFactory

public class DirectPastryNodeFactory
extends java.lang.Object
implements PastryNodeFactory

Pastry node factory for direct connections between nodes (local instances).

Version:
$Id: DirectPastryNodeFactory.java,v 1.27 2003/05/06 15:11:43 druschel Exp $
Author:
Andrew Ladd, Sitaram Iyer, Rongmei Zhang/Y. Charlie Hu

Constructor Summary
DirectPastryNodeFactory(NodeIdFactory nf, NetworkSimulator sim)
           
 
Method Summary
 NetworkSimulator getNetworkSimulator()
           
 PastryNode newNode(NodeHandle bootstrap)
          Manufacture a new Pastry node.
 PastryNode newNode(NodeHandle bootstrap, NodeId nodeId)
          Manufacture a new Pastry node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectPastryNodeFactory

public DirectPastryNodeFactory(NodeIdFactory nf,
                               NetworkSimulator sim)
Method Detail

getNetworkSimulator

public NetworkSimulator getNetworkSimulator()

newNode

public PastryNode newNode(NodeHandle bootstrap)
Manufacture a new Pastry node.

Specified by:
newNode in interface PastryNodeFactory
Returns:
a new PastryNode

newNode

public PastryNode newNode(NodeHandle bootstrap,
                          NodeId nodeId)
Manufacture a new Pastry node.

Specified by:
newNode in interface PastryNodeFactory
Returns:
a new PastryNode

Rice Pastry API

Copyright © 2001 - Rice Pastry