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:
- RMIProxy, 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.
|
Constructor Summary |
protected |
Proxy(URL url)
|
| Methods inherited from class de.uniba.wiai.lspi.chord.com.Node |
disconnect, equals, findSuccessor, getNodeID, getNodeURL, hashCode, insertEntry, insertReplicas, leavesNetwork, notify, notifyAndCopyEntries, ping, removeEntry, removeReplicas, retrieveEntries, setNodeID, setNodeURL, toString |
Proxy
protected Proxy(URL url)
- Parameters:
url -
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
Copyright © 2004-2008 Karsten Loesing, Sven Kaffille - Distributed and Mobile Systems Group, Lehrstuhl für Praktische Informatik, Universität Bamberg. All Rights Reserved.