|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.pastry.PastryNodeFactory
The interface to an object which can construct PastryNodes.
Constructor Summary | |
PastryNodeFactory()
|
Method Summary | |
abstract rice.pastry.leafset.LeafSet |
getLeafSet(rice.pastry.NodeHandle handle)
This method returns the remote leafset of the provided handle to the caller, in a protocol-dependent fashion. |
rice.pastry.NodeHandle |
getNearest(rice.pastry.NodeHandle local,
rice.pastry.NodeHandle seed)
This method implements the algorithm in the Pastry locality paper for finding a close node the the current node through iterative leafset and route row requests. |
abstract int |
getProximity(rice.pastry.NodeHandle local,
rice.pastry.NodeHandle handle)
This method determines and returns the proximity of the current local node the provided NodeHandle. |
abstract rice.pastry.routing.RouteSet[] |
getRouteRow(rice.pastry.NodeHandle handle,
int row)
This method returns the remote route row of the provided handle to the caller, in a protocol-dependent fashion. |
abstract rice.pastry.PastryNode |
newNode(rice.pastry.NodeHandle bootstrap)
Call this to construct a new node of the type chosen by the factory. |
abstract rice.pastry.PastryNode |
newNode(rice.pastry.NodeHandle bootstrap,
rice.pastry.NodeId 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 |
Constructor Detail |
public PastryNodeFactory()
Method Detail |
public abstract rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap)
bootstrap
- The node handle to bootstrap off ofpublic abstract rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap, rice.pastry.NodeId nodeId)
bootstrap
- The node handle to bootstrap off ofnodeId
- The nodeId of the new nodepublic abstract rice.pastry.leafset.LeafSet getLeafSet(rice.pastry.NodeHandle handle)
handle
- The node to connect to
public abstract rice.pastry.routing.RouteSet[] getRouteRow(rice.pastry.NodeHandle handle, int row)
handle
- The node to connect torow
- The row number to retrieve
public abstract int getProximity(rice.pastry.NodeHandle local, rice.pastry.NodeHandle handle)
handle
- The handle to determine the proximity of
public rice.pastry.NodeHandle getNearest(rice.pastry.NodeHandle local, rice.pastry.NodeHandle seed)
seed
- Any member of the pastry ring
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |