de.uniba.wiai.lspi.chord.com
Class Proxy

java.lang.Object
  extended by de.uniba.wiai.lspi.chord.com.Node
      extended by 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.


Field Summary
 
Fields inherited from class de.uniba.wiai.lspi.chord.com.Node
nodeID, nodeURL
 
Constructor Summary
protected Proxy(URL url)
           
 
Method Summary
static Node createConnection(URL sourceUrl, URL destinationUrl)
          Factory method to create a proxy to connect to the given 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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Proxy

protected Proxy(URL url)
Parameters:
url -
Method Detail

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.