rice.pastry.transport
Class TransportPastryNodeFactory
java.lang.Object
rice.pastry.PastryNodeFactory
rice.pastry.transport.TransportPastryNodeFactory
- Direct Known Subclasses:
- DirectPastryNodeFactory, SocketPastryNodeFactory
public abstract class TransportPastryNodeFactory
- extends PastryNodeFactory
Method Summary |
protected abstract Bootstrapper |
getBootstrapper(TLPastryNode pn,
NodeHandleAdapter tl,
NodeHandleFactory handleFactory,
ProximityNeighborSelector pns,
java.lang.Object localNodeData)
|
protected JoinProtocol |
getJoinProtocol(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
java.lang.Object localNodeData,
LeafSetProtocol lsProtocol)
|
protected LeafSetProtocol |
getLeafSetProtocol(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
java.lang.Object localNodeData)
|
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)
|
protected ProximityNeighborSelector |
getProximityNeighborSelector(TLPastryNode pn)
Can be overridden. |
protected RouterStrategy |
getRouterStrategy(PastryNode pn)
|
protected RouteSetProtocol |
getRouteSetProtocol(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
java.lang.Object localNodeData)
|
protected TLDeserializer |
getTLDeserializer(NodeHandleFactory handleFactory,
TLPastryNode pn)
|
protected TLPastryNode |
nodeHandleHelper(Id nodeId,
Environment environment,
java.lang.Object localNodeData)
|
protected void |
registerApps(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
NodeHandleAdapter nha,
NodeHandleFactory handleFactory,
java.lang.Object localNodeData)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
leafSetMaintFreq
protected int leafSetMaintFreq
- Large period (in seconds) means infrequent, 0 means never.
routeSetMaintFreq
protected int routeSetMaintFreq
TransportPastryNodeFactory
public TransportPastryNodeFactory(Environment env)
- Constructor.
Here is order for bind address 1) bindAddress parameter 2) if bindAddress
is null, then parameter: socket_bindAddress (if it exists) 3) if
socket_bindAddress doesn't exist, then InetAddress.getLocalHost()
- Parameters:
nf
- The factory for building node idsbindAddress
- which address to bind tostartPort
- The port to start creating nodes onenv
- The environment.
nodeHandleHelper
protected TLPastryNode nodeHandleHelper(Id nodeId,
Environment environment,
java.lang.Object localNodeData)
throws java.io.IOException
- Throws:
java.io.IOException
getRouterStrategy
protected RouterStrategy getRouterStrategy(PastryNode pn)
registerApps
protected void registerApps(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
NodeHandleAdapter nha,
NodeHandleFactory handleFactory,
java.lang.Object localNodeData)
getRouteSetProtocol
protected RouteSetProtocol getRouteSetProtocol(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
java.lang.Object localNodeData)
getLeafSetProtocol
protected LeafSetProtocol getLeafSetProtocol(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
java.lang.Object localNodeData)
getJoinProtocol
protected JoinProtocol getJoinProtocol(TLPastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
java.lang.Object localNodeData,
LeafSetProtocol lsProtocol)
getTLDeserializer
protected TLDeserializer getTLDeserializer(NodeHandleFactory handleFactory,
TLPastryNode pn)
getProximityNeighborSelector
protected ProximityNeighborSelector getProximityNeighborSelector(TLPastryNode pn)
- Can be overridden.
- Parameters:
pn
-
- Returns:
getLocalHandle
protected abstract NodeHandle getLocalHandle(TLPastryNode pn,
NodeHandleFactory handleFactory,
java.lang.Object localNodeData)
throws java.io.IOException
- Throws:
java.io.IOException
getNodeHanldeAdapter
protected abstract NodeHandleAdapter getNodeHanldeAdapter(TLPastryNode pn,
NodeHandleFactory handleFactory,
TLDeserializer deserializer)
throws java.io.IOException
- Throws:
java.io.IOException
getNodeHandleFactory
protected abstract NodeHandleFactory getNodeHandleFactory(TLPastryNode pn)
throws java.io.IOException
- Throws:
java.io.IOException
getBootstrapper
protected abstract Bootstrapper getBootstrapper(TLPastryNode pn,
NodeHandleAdapter tl,
NodeHandleFactory handleFactory,
ProximityNeighborSelector pns,
java.lang.Object localNodeData)
Copyright © 2001-2005 - Rice Pastry.