|
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).
Field Summary |
Fields inherited from class rice.pastry.PastryNodeFactory |
environment, logger, lSetSize, pingCache, rtBase, rtMax |
Constructor Summary | |
DirectPastryNodeFactory(NodeIdFactory nf,
NetworkSimulator sim,
Environment env)
Main constructor. |
Method Summary | |
LeafSet |
getLeafSet(NodeHandle handle)
This method returns the remote leafset of the provided handle to the caller, in a protocol-dependent fashion. |
CancellableTask |
getLeafSet(NodeHandle handle,
Continuation c)
Gets the LeafSet attribute of the DirectPastryNodeFactory object |
NetworkSimulator |
getNetworkSimulator()
Getter for the NetworkSimulator. |
int |
getProximity(NodeHandle local,
NodeHandle remote)
This method determines and returns the proximity of the current local node the provided NodeHandle. |
RouteSet[] |
getRouteRow(NodeHandle handle,
int row)
This method returns the remote route row of the provided handle to the caller, in a protocol-dependent fashion. |
CancellableTask |
getRouteRow(NodeHandle handle,
int row,
Continuation c)
Gets the RouteRow attribute of the DirectPastryNodeFactory object |
PastryNode |
newNode(NodeHandle bootstrap)
Manufacture a new Pastry node. |
PastryNode |
newNode(NodeHandle bootstrap,
Id nodeId)
Manufacture a new Pastry node. |
protected int |
proximity(NodeHandle local,
NodeHandle handle)
DESCRIBE THE METHOD |
Methods inherited from class rice.pastry.PastryNodeFactory |
getEnvironment, getNearest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DirectPastryNodeFactory(NodeIdFactory nf, NetworkSimulator sim, Environment env)
nf
- the NodeIdFactorysim
- the NetworkSimulatorenv
- DESCRIBE THE PARAMETERMethod Detail |
public NetworkSimulator getNetworkSimulator()
public LeafSet getLeafSet(NodeHandle handle) throws java.io.IOException
getLeafSet
in class PastryNodeFactory
handle
- The node to connect to
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic CancellableTask getLeafSet(NodeHandle handle, Continuation c)
getLeafSet
in class PastryNodeFactory
handle
- DESCRIBE THE PARAMETERc
- DESCRIBE THE PARAMETER
public RouteSet[] getRouteRow(NodeHandle handle, int row) throws java.io.IOException
getRouteRow
in class PastryNodeFactory
handle
- The node to connect torow
- The row number to retrieve
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic CancellableTask getRouteRow(NodeHandle handle, int row, Continuation c)
getRouteRow
in class PastryNodeFactory
handle
- DESCRIBE THE PARAMETERrow
- DESCRIBE THE PARAMETERc
- DESCRIBE THE PARAMETER
public int getProximity(NodeHandle local, NodeHandle remote)
getProximity
in class PastryNodeFactory
local
- DESCRIBE THE PARAMETERremote
- DESCRIBE THE PARAMETER
public PastryNode newNode(NodeHandle bootstrap)
newNode
in class PastryNodeFactory
bootstrap
- DESCRIBE THE PARAMETER
public PastryNode newNode(NodeHandle bootstrap, Id nodeId)
newNode
in class PastryNodeFactory
bootstrap
- DESCRIBE THE PARAMETERnodeId
- DESCRIBE THE PARAMETER
protected int proximity(NodeHandle local, NodeHandle handle)
proximity
in class PastryNodeFactory
local
- DESCRIBE THE PARAMETERhandle
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |