|
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 | +--rice.pastry.multiring.MultiRingPastryNodeFactory
This class represents a factory for MultiRing pastry nodes. In order to use this class, one should use the static method getMultiRingFactory(), which will return a new factory ready for use.
Constructor Summary | |
MultiRingPastryNodeFactory(rice.pastry.PastryNodeFactory factory)
|
Method Summary | |
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. |
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. |
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. |
rice.pastry.PastryNode |
joinRing(rice.pastry.multiring.MultiRingPastryNode parentNode,
rice.pastry.NodeHandle bootstrap)
|
rice.pastry.PastryNode |
newNode(rice.pastry.NodeHandle bootstrap)
Call this to construct a new node of the type chosen by the factory. |
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 rice.pastry.PastryNodeFactory |
getNearest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiRingPastryNodeFactory(rice.pastry.PastryNodeFactory factory)
Method Detail |
public rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap)
PastryNodeFactory
newNode
in class PastryNodeFactory
bootstrap
- The node handle to bootstrap off ofpublic rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap, rice.pastry.NodeId nodeId)
PastryNodeFactory
newNode
in class PastryNodeFactory
bootstrap
- The node handle to bootstrap off ofnodeId
- The nodeId of the new nodepublic rice.pastry.PastryNode joinRing(rice.pastry.multiring.MultiRingPastryNode parentNode, rice.pastry.NodeHandle bootstrap)
public rice.pastry.leafset.LeafSet getLeafSet(rice.pastry.NodeHandle handle)
getLeafSet
in class PastryNodeFactory
handle
- The node to connect to
public rice.pastry.routing.RouteSet[] getRouteRow(rice.pastry.NodeHandle handle, int row)
getRouteRow
in class PastryNodeFactory
handle
- The node to connect torow
- The row number to retrieve
public int getProximity(rice.pastry.NodeHandle local, rice.pastry.NodeHandle handle)
getProximity
in class PastryNodeFactory
handle
- The handle to determine the proximity of
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |