|
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.direct.DirectPastryNodeFactory
Pastry node factory for direct connections between nodes (local instances).
Constructor Summary | |
DirectPastryNodeFactory(rice.pastry.NodeIdFactory nf,
rice.pastry.direct.NetworkSimulator sim)
|
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. |
rice.pastry.direct.NetworkSimulator |
getNetworkSimulator()
|
int |
getProximity(rice.pastry.NodeHandle local,
rice.pastry.NodeHandle remote)
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 |
newNode(rice.pastry.NodeHandle bootstrap)
Manufacture a new Pastry node. |
rice.pastry.PastryNode |
newNode(rice.pastry.NodeHandle bootstrap,
rice.pastry.NodeId nodeId)
Manufacture a new Pastry node. |
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 DirectPastryNodeFactory(rice.pastry.NodeIdFactory nf, rice.pastry.direct.NetworkSimulator sim)
Method Detail |
public rice.pastry.direct.NetworkSimulator getNetworkSimulator()
public rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap)
newNode
in class PastryNodeFactory
bootstrap
- The node handle to bootstrap off of
public rice.pastry.PastryNode newNode(rice.pastry.NodeHandle bootstrap, rice.pastry.NodeId nodeId)
newNode
in class PastryNodeFactory
bootstrap
- The node handle to bootstrap off ofnodeId
- The nodeId of the new node
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 remote)
getProximity
in class PastryNodeFactory
remote
- 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 |