de.uniba.wiai.lspi.chord.com.rmi
Interface RemoteNode

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RMIEndpoint

public interface RemoteNode
extends java.rmi.Remote

Version:
1.0.5
Author:
sven

Method Summary
 de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo findSuccessor(ID key)
           
 ID getNodeID()
           
 void insertEntry(Entry entryToInsert)
           
 void insertReplicas(java.util.Set<Entry> entries)
           
 void leavesNetwork(de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo predecessor)
           
 java.util.List<de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo> notify(de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo potentialPredecessor)
           
 de.uniba.wiai.lspi.chord.com.rmi.RemoteRefsAndEntries notifyAndCopyEntries(de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo potentialPredecessor)
           
 void ping()
           
 void removeEntry(Entry entryToRemove)
           
 void removeReplicas(ID sendingNode, java.util.Set<Entry> replicasToRemove)
           
 java.util.Set<Entry> retrieveEntries(ID id)
           
 

Method Detail

findSuccessor

de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo findSuccessor(ID key)
                                                              throws CommunicationException,
                                                                     java.rmi.RemoteException
Parameters:
key -
Returns:
Throws:
CommunicationException
java.rmi.RemoteException

getNodeID

ID getNodeID()
             throws java.rmi.RemoteException
Returns:
Throws:
java.rmi.RemoteException

insertEntry

void insertEntry(Entry entryToInsert)
                 throws CommunicationException,
                        java.rmi.RemoteException
Parameters:
entryToInsert -
Throws:
CommunicationException
java.rmi.RemoteException

insertReplicas

void insertReplicas(java.util.Set<Entry> entries)
                    throws CommunicationException,
                           java.rmi.RemoteException
Parameters:
entries -
Throws:
CommunicationException
java.rmi.RemoteException

leavesNetwork

void leavesNetwork(de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo predecessor)
                   throws CommunicationException,
                          java.rmi.RemoteException
Parameters:
predecessor -
Throws:
CommunicationException
java.rmi.RemoteException

notify

java.util.List<de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo> notify(de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo potentialPredecessor)
                                                                       throws CommunicationException,
                                                                              java.rmi.RemoteException
Parameters:
potentialPredecessor -
Returns:
Throws:
CommunicationException
java.rmi.RemoteException

notifyAndCopyEntries

de.uniba.wiai.lspi.chord.com.rmi.RemoteRefsAndEntries notifyAndCopyEntries(de.uniba.wiai.lspi.chord.com.rmi.RemoteNodeInfo potentialPredecessor)
                                                                           throws CommunicationException,
                                                                                  java.rmi.RemoteException
Parameters:
potentialPredecessor -
Returns:
Throws:
CommunicationException
java.rmi.RemoteException

ping

void ping()
          throws CommunicationException,
                 java.rmi.RemoteException
Throws:
CommunicationException
java.rmi.RemoteException

removeEntry

void removeEntry(Entry entryToRemove)
                 throws CommunicationException,
                        java.rmi.RemoteException
Parameters:
entryToRemove -
Throws:
CommunicationException
java.rmi.RemoteException

removeReplicas

void removeReplicas(ID sendingNode,
                    java.util.Set<Entry> replicasToRemove)
                    throws CommunicationException,
                           java.rmi.RemoteException
Parameters:
sendingNode -
replicasToRemove -
Throws:
CommunicationException
java.rmi.RemoteException

retrieveEntries

java.util.Set<Entry> retrieveEntries(ID id)
                                     throws CommunicationException,
                                            java.rmi.RemoteException
Parameters:
id -
Returns:
Throws:
CommunicationException
java.rmi.RemoteException