de.uniba.wiai.lspi.chord.com.rmi
Class RMIProxy

java.lang.Object
  extended by de.uniba.wiai.lspi.chord.com.Node
      extended by de.uniba.wiai.lspi.chord.com.Proxy
          extended by de.uniba.wiai.lspi.chord.com.rmi.RMIProxy

public final class RMIProxy
extends Proxy


Method Summary
static RMIProxy create(URL localURL, URL url)
           
 void disconnect()
          Closes the connection to the node.
 Node findSuccessor(ID key)
           
 void insertEntry(Entry entryToInsert)
           
 void insertReplicas(java.util.Set<Entry> entries)
           
 void leavesNetwork(Node predecessor)
           
 java.util.List<Node> notify(Node predecessor)
           
 RefsAndEntries notifyAndCopyEntries(Node predecessor)
           
 void ping()
          Requests a sign of live.
 void removeEntry(Entry entryToRemove)
           
 void removeReplicas(ID sendingNode, java.util.Set<Entry> replicasToRemove)
           
 java.util.Set<Entry> retrieveEntries(ID id)
           
 void testConnection()
           
 
Methods inherited from class de.uniba.wiai.lspi.chord.com.Proxy
createConnection
 
Methods inherited from class de.uniba.wiai.lspi.chord.com.Node
equals, findSuccessor, findSuccessorAtFloor, getIdForFloor, getNodeURL, hashCode, insertEntry, insertReplicas, leavesNetwork, notify, notifyAndCopyEntries, removeEntry, removeReplicas, retrieveEntries, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static RMIProxy create(URL localURL,
                              URL url)
                       throws CommunicationException
Parameters:
localURL -
url -
Returns:
Throws:
CommunicationException

disconnect

public void disconnect()
Description copied from class: Node
Closes the connection to the node.

Specified by:
disconnect in class Node

testConnection

public void testConnection()
                    throws CommunicationException
Throws:
CommunicationException

findSuccessor

public Node findSuccessor(ID key)
                   throws CommunicationException
Throws:
CommunicationException

insertEntry

public void insertEntry(Entry entryToInsert)
                 throws CommunicationException
Throws:
CommunicationException

insertReplicas

public void insertReplicas(java.util.Set<Entry> entries)
                    throws CommunicationException
Throws:
CommunicationException

leavesNetwork

public void leavesNetwork(Node predecessor)
                   throws CommunicationException
Throws:
CommunicationException

notify

public java.util.List<Node> notify(Node predecessor)
                            throws CommunicationException
Throws:
CommunicationException

notifyAndCopyEntries

public RefsAndEntries notifyAndCopyEntries(Node predecessor)
                                    throws CommunicationException
Throws:
CommunicationException

ping

public void ping()
          throws CommunicationException
Description copied from class: Node
Requests a sign of live. This method is invoked by another node which thinks it is this node's successor.

Specified by:
ping in class Node
Throws:
CommunicationException - Thrown if an unresolvable communication failure occurs.

removeEntry

public void removeEntry(Entry entryToRemove)
                 throws CommunicationException
Throws:
CommunicationException

removeReplicas

public void removeReplicas(ID sendingNode,
                           java.util.Set<Entry> replicasToRemove)
                    throws CommunicationException
Throws:
CommunicationException

retrieveEntries

public java.util.Set<Entry> retrieveEntries(ID id)
                                     throws CommunicationException
Throws:
CommunicationException