de.uniba.wiai.lspi.chord.com
Class Proxy
java.lang.Object
de.uniba.wiai.lspi.chord.com.Node
de.uniba.wiai.lspi.chord.com.Proxy
- Direct Known Subclasses:
- SocketProxy, ThreadProxy
public abstract class Proxy
- extends Node
This class is used to represent other
nodes
at a
node
, so that these nodes are
able to connect to the node. A Proxy should establish a connection to the
Endpoint
of the node that is represented by this proxy. So all
protocol specific implementation for connections between nodes must be
realized in an pair of Endpoint
and Proxy
.
This class has to be extended by all Proxies that are used to provide a
connection to a remote node via the Node
interface.
- Version:
- 1.0.5
modified, 0.99b
- Author:
- sven, bojanm
Methods inherited from class de.uniba.wiai.lspi.chord.com.Node |
disconnect, equals, findSuccessor, findSuccessorAtFloor, getFirstFloor, getIdForFloor, getNodeURL, hashCode, insertEntry, insertReplicas, leavesNetwork, notify, notifyAndCopyEntries, ping, removeEntry, removeReplicas, retrieveEntries, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
createConnection
public static Node createConnection(URL sourceUrl,
URL destinationUrl)
throws CommunicationException
- Factory method to create a proxy to connect to the given
URL
.
The protocol of url is used to determine the type of the proxy to create.
The protocol of url must be a known protocol.
- Parameters:
sourceUrl
- URL
of the local node, that wants to establish the
connection.destinationUrl
- URL
of the remote endpoint.
- Returns:
- Proxy to make invocations on a
Node
remote node.
- Throws:
CommunicationException