|
||||||||||
| 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
rice.pastry.socket.SocketPastryNodeFactory
rice.pastry.socket.nat.rendezvous.RendezvousSocketPastryNodeFactory
public class RendezvousSocketPastryNodeFactory
This class assembles the rendezvous layer with the rendezvous app. Need to think about where this best goes, but for now, we'll put it just above the magic number layer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class rice.pastry.socket.SocketPastryNodeFactory |
|---|
SocketPastryNodeFactory.TLBootstrapper, SocketPastryNodeFactory.TransLiveness<Identifier,MessageType>, SocketPastryNodeFactory.TransLivenessProximity<Identifier,MessageType> |
| Field Summary | |
|---|---|
protected String |
CONTACT_STATE
Maps to a byte contactState |
protected RandomSource |
random
|
static String |
RENDEZVOUS_CONTACT_DIRECT_STRATEGY
getVars() maps to a ContactDirectStrategy |
static String |
RENDEZVOUS_STRATEGY
maps to a RendezvousStrategy |
static String |
RENDEZVOUS_TL
maps to a RendezvousTransportLayerImpl |
static String |
SIMULATE_FIREWALL
maps to a boolean, if true then simulates a firewall |
| Fields inherited from class rice.pastry.socket.SocketPastryNodeFactory |
|---|
findFireWallPolicy, IP_SERVICE, localAddress, MULTI_ADDRESS_STRATEGY, MULTI_INET_TL, NETWORK_INFO_NODE_HANDLE_INDEX, nidFactory, NODE_HANDLE_FACTORY, PASTRY_MAGIC_NUMBER, PRIORITY_TL, PROXY_ADDRESS, testFireWallPolicy |
| Fields inherited from class rice.pastry.transport.TransportPastryNodeFactory |
|---|
leafSetMaintFreq, routeSetMaintFreq |
| Fields inherited from class rice.pastry.PastryNodeFactory |
|---|
environment, logger, lSetSize, rtBase, rtMax |
| Constructor Summary | |
|---|---|
RendezvousSocketPastryNodeFactory(NodeIdFactory nf,
InetAddress bindAddress,
int startPort,
Environment env,
boolean firewalled)
|
|
RendezvousSocketPastryNodeFactory(NodeIdFactory nf,
int startPort,
Environment env,
boolean firewalled)
|
|
| Methods inherited from class rice.pastry.transport.TransportPastryNodeFactory |
|---|
getLeafSetProtocol, getRouterStrategy, getRouteSetProtocol, getTLDeserializer, nodeHandleHelper |
| Methods inherited from class rice.pastry.PastryNodeFactory |
|---|
getEnvironment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String CONTACT_STATE
protected RandomSource random
public static final String RENDEZVOUS_STRATEGY
public static final String RENDEZVOUS_TL
public static final String SIMULATE_FIREWALL
public static final String RENDEZVOUS_CONTACT_DIRECT_STRATEGY
| Constructor Detail |
|---|
public RendezvousSocketPastryNodeFactory(NodeIdFactory nf,
InetAddress bindAddress,
int startPort,
Environment env,
boolean firewalled)
throws IOException
IOException
public RendezvousSocketPastryNodeFactory(NodeIdFactory nf,
int startPort,
Environment env,
boolean firewalled)
throws IOException
IOException| Method Detail |
|---|
public void setContactState(byte contactState)
protected void newNodeSelector(Id nodeId,
MultiInetSocketAddress proxyAddress,
Continuation<PastryNode,IOException> deliverResultToMe,
Map<String,Object> initialVars,
boolean firewalled)
nodeId - proxyAddress - deliverResultToMe - initialVars - firewalled -
protected void newNodeSelector(Id nodeId,
MultiInetSocketAddress proxyAddress,
Continuation<PastryNode,IOException> deliverResultToMe,
Map<String,Object> initialVars,
byte contactState)
nodeId - proxyAddress - deliverResultToMe - initialVars - contactState -
protected JoinProtocol getJoinProtocol(PastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
ReadyStrategy lsProtocol)
getJoinProtocol in class TransportPastryNodeFactory
protected TransportLayer<InetSocketAddress,ByteBuffer> getIpServiceTransportLayer(TransportLayer<InetSocketAddress,ByteBuffer> wtl,
PastryNode pn)
throws IOException
getIpServiceTransportLayer in class SocketPastryNodeFactoryIOException
protected IdentitySerializer<TransportLayerNodeHandle<MultiInetSocketAddress>,MultiInetSocketAddress,SourceRoute<MultiInetSocketAddress>> getIdentiySerializer(PastryNode pn,
SocketNodeHandleFactory handleFactory)
getIdentiySerializer in class SocketPastryNodeFactory
protected TransportLayer<InetSocketAddress,ByteBuffer> getRendezvousTransportLayer(TransportLayer<InetSocketAddress,ByteBuffer> mtl,
PastryNode pn)
protected NextHopStrategy<MultiInetSocketAddress> getNextHopStrategy(TransportLayer<SourceRoute<MultiInetSocketAddress>,ByteBuffer> ltl,
LivenessProvider<SourceRoute<MultiInetSocketAddress>> livenessProvider,
Pinger<SourceRoute<MultiInetSocketAddress>> pinger,
PastryNode pn,
MultiInetSocketAddress proxyAddress,
MultiAddressSourceRouteFactory esrFactory)
throws IOException
getNextHopStrategy in class SocketPastryNodeFactoryIOExceptionprotected ResponseStrategy<InetSocketAddress> getResponseStrategy(PastryNode pn)
protected ContactDirectStrategy<RendezvousSocketNodeHandle> getContactDirectStrategy(PastryNode pn)
protected PilotFinder<RendezvousSocketNodeHandle> getPilotFinder(PastryNode pn)
protected void generatePilotStrategy(PastryNode pn,
RendezvousTransportLayerImpl<InetSocketAddress,RendezvousSocketNodeHandle> rendezvousLayer)
protected ContactDeserializer<InetSocketAddress,RendezvousSocketNodeHandle> getContactDeserializer(PastryNode pn)
protected RendezvousGenerationStrategy<RendezvousSocketNodeHandle> getRendezvousGenerator(PastryNode pn)
protected ProximityNeighborSelector getProximityNeighborSelector(PastryNode pn)
TransportPastryNodeFactory
getProximityNeighborSelector in class TransportPastryNodeFactoryprotected RendezvousStrategy<RendezvousSocketNodeHandle> getRendezvousStrategyHelper(PastryNode pn)
protected RendezvousStrategy<RendezvousSocketNodeHandle> getRendezvousStrategy(PastryNode pn)
protected void registerApps(PastryNode pn,
LeafSet leafSet,
RoutingTable routeTable,
NodeHandleAdapter nha,
NodeHandleFactory handleFactory)
registerApps in class SocketPastryNodeFactorypublic NodeHandleFactory getNodeHandleFactory(PastryNode pn)
getNodeHandleFactory in class SocketPastryNodeFactory
public NodeHandle getLocalHandle(PastryNode pn,
NodeHandleFactory nhf)
getLocalHandle in class SocketPastryNodeFactory
protected TransportLayer<InetSocketAddress,ByteBuffer> getWireTransportLayer(InetSocketAddress innermostAddress,
PastryNode pn)
throws IOException
getWireTransportLayer in class SocketPastryNodeFactoryIOException
protected PriorityTransportLayer<MultiInetSocketAddress> getPriorityTransportLayer(TransportLayer<MultiInetSocketAddress,ByteBuffer> trans,
LivenessProvider<MultiInetSocketAddress> liveness,
ProximityProvider<MultiInetSocketAddress> prox,
PastryNode pn)
getPriorityTransportLayer in class SocketPastryNodeFactory
protected Bootstrapper getBootstrapper(PastryNode pn,
NodeHandleAdapter tl,
NodeHandleFactory handleFactory,
ProximityNeighborSelector pns)
getBootstrapper in class SocketPastryNodeFactoryprotected boolean isInternetRoutablePrefix(InetAddress address)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||