|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.PastryNodeFactory
rice.pastry.transport.TransportPastryNodeFactory
public abstract class TransportPastryNodeFactory
Field Summary | |
---|---|
protected int |
leafSetMaintFreq
Large period (in seconds) means infrequent, 0 means never. |
protected int |
routeSetMaintFreq
|
Fields inherited from class rice.pastry.PastryNodeFactory |
---|
environment, logger, lSetSize, pingCache, rtBase, rtMax |
Constructor Summary | |
---|---|
TransportPastryNodeFactory(Environment env)
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)
Non-blocking version. |
protected abstract NodeHandle |
getLocalHandle(TLPastryNode pn,
NodeHandleFactory handleFactory,
java.lang.Object localNodeData)
|
protected abstract NodeHandleFactory |
getNodeHandleFactory(TLPastryNode pn)
|
protected abstract NodeHandleAdapter |
getNodeHanldeAdapter(TLPastryNode pn,
NodeHandleFactory handleFactory,
TLDeserializer deserializer)
|
int |
getProximity(NodeHandle local,
NodeHandle handle)
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)
Non-blocking version. |
protected TLPastryNode |
nodeHandleHelper(Id nodeId,
Environment environment,
java.lang.Object localNodeData)
|
Methods inherited from class rice.pastry.PastryNodeFactory |
---|
getEnvironment, getNearest, newNode, newNode, proximity, sortedProximityCache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int leafSetMaintFreq
protected int routeSetMaintFreq
Constructor Detail |
---|
public TransportPastryNodeFactory(Environment env)
nf
- The factory for building node idsbindAddress
- which address to bind tostartPort
- The port to start creating nodes onenv
- The environment.Method Detail |
---|
protected TLPastryNode nodeHandleHelper(Id nodeId, Environment environment, java.lang.Object localNodeData) throws java.io.IOException
java.io.IOException
protected abstract NodeHandle getLocalHandle(TLPastryNode pn, NodeHandleFactory handleFactory, java.lang.Object localNodeData) throws java.io.IOException
java.io.IOException
protected abstract NodeHandleAdapter getNodeHanldeAdapter(TLPastryNode pn, NodeHandleFactory handleFactory, TLDeserializer deserializer) throws java.io.IOException
java.io.IOException
protected abstract NodeHandleFactory getNodeHandleFactory(TLPastryNode pn) throws java.io.IOException
java.io.IOException
public LeafSet getLeafSet(NodeHandle handle) throws java.io.IOException
PastryNodeFactory
getLeafSet
in class PastryNodeFactory
handle
- The node to connect to
java.io.IOException
public CancellableTask getLeafSet(NodeHandle handle, Continuation c)
PastryNodeFactory
getLeafSet
in class PastryNodeFactory
public int getProximity(NodeHandle local, NodeHandle handle)
PastryNodeFactory
getProximity
in class PastryNodeFactory
handle
- The handle to determine the proximity of
public RouteSet[] getRouteRow(NodeHandle handle, int row) throws java.io.IOException
PastryNodeFactory
getRouteRow
in class PastryNodeFactory
handle
- The node to connect torow
- The row number to retrieve
java.io.IOException
public CancellableTask getRouteRow(NodeHandle handle, int row, Continuation c)
PastryNodeFactory
getRouteRow
in class PastryNodeFactory
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |