|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.PastryNodeFactory
rice.pastry.dist.DistPastryNodeFactory
rice.pastry.wire.WirePastryNodeFactory
Pastry node factory for Wire-linked nodes.
Field Summary |
Fields inherited from class rice.pastry.dist.DistPastryNodeFactory |
PROTOCOL_RMI, PROTOCOL_SOCKET, PROTOCOL_WIRE |
Constructor Summary | |
WirePastryNodeFactory(NodeIdFactory nf,
int startPort)
Constructor. |
Method Summary | |
NodeHandle |
generateNodeHandle(java.net.InetSocketAddress address)
Method which contructs a node handle (using the wire protocol) for the node at address NodeHandle. |
LeafSet |
getLeafSet(NodeHandle handle)
This method returns the remote leafset of the provided handle to the caller, in a protocol-dependent fashion. |
int |
getProximity(NodeHandle local,
NodeHandle handle)
This method determines and returns the proximity of the current local node the provided NodeHandle. |
protected SocketCommandMessage |
getResponse(java.net.InetSocketAddress address,
SocketCommandMessage message)
This method anonymously sends the given message to the remote address, blocks until a response is received, and then closes the socket and returns the response. |
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. |
PastryNode |
newNode(NodeHandle bootstrap)
Method which creates a Pastry node from the next port with a randomly generated NodeId. |
PastryNode |
newNode(NodeHandle bootstrap,
NodeId nodeId)
Method which creates a Pastry node from the next port with a randomly generated NodeId. |
Methods inherited from class rice.pastry.dist.DistPastryNodeFactory |
getFactory, getNodeHandle |
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 WirePastryNodeFactory(NodeIdFactory nf, int startPort)
nf
- DESCRIBE THE PARAMETERstartPort
- DESCRIBE THE PARAMETERMethod Detail |
public LeafSet getLeafSet(NodeHandle handle)
getLeafSet
in class PastryNodeFactory
handle
- The node to connect to
public RouteSet[] getRouteRow(NodeHandle handle, int row)
getRouteRow
in class PastryNodeFactory
handle
- The node to connect torow
- The row number to retrieve
public int getProximity(NodeHandle local, NodeHandle handle)
getProximity
in class PastryNodeFactory
handle
- The handle to determine the proximity oflocal
- DESCRIBE THE PARAMETER
public NodeHandle generateNodeHandle(java.net.InetSocketAddress address)
generateNodeHandle
in class DistPastryNodeFactory
address
- The address of the remote node.
public PastryNode newNode(NodeHandle bootstrap)
newNode
in class DistPastryNodeFactory
bootstrap
- Node handle to bootstrap from.
public PastryNode newNode(NodeHandle bootstrap, NodeId nodeId)
newNode
in class DistPastryNodeFactory
bootstrap
- Node handle to bootstrap from.nodeId
- DESCRIBE THE PARAMETER
protected SocketCommandMessage getResponse(java.net.InetSocketAddress address, SocketCommandMessage message) throws java.io.IOException
address
- The address to send tomessage
- The message to send
java.io.IOException
- DESCRIBE THE EXCEPTION
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |