de.uniba.wiai.lspi.chord.com.rmi
Class RMIProxy
java.lang.Object
de.uniba.wiai.lspi.chord.com.Node
de.uniba.wiai.lspi.chord.com.Proxy
de.uniba.wiai.lspi.chord.com.rmi.RMIProxy
public final class RMIProxy
- extends Proxy
| 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 |
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