import java.rmi.Remote;
import java.rmi.RemoteException;
+import java.util.ArrayList;
import java.util.Vector;
import and.Mapping.Algo;
// public Node getNewNode(String spawnerIP) throws RemoteException;
- public Node getNewNode(String spawnerIP, Node _deadNode) throws RemoteException;
+ public Node getNewNode( String _spawnerIP, int _rank ) throws RemoteException ;
+
+ public Node getNewNode( String spawnerIP, GNode _deadNode ) throws RemoteException;
public Vector<?> sendStub(String IP, int port, JaceSuperNodeInterface stub)
throws RemoteException;
public void updateCountNode(String IP, int nb) throws RemoteException;
- public void sendSurplus(Vector<?> nodes) throws RemoteException;
+ public void sendSurplus(Vector<?> nodes, ArrayList<GNode> _gnodes) throws RemoteException;
public void removeSuperNode(SuperNodeData d) throws RemoteException;
/** ! **/
public void addGNode( GNode _g ) throws RemoteException ;
- public void removeGNode( GNode _g ) throws RemoteException ;
+// public void removeGNode( GNode _g ) throws RemoteException ;
+
+ public GNode delGNodeFromList( Node _n, int _mode, String _spawnerIp ) throws RemoteException ;
public boolean blockForMapping() throws RemoteException ;
public void setMapping( Algo al ) throws RemoteException ;
- public void updateMappedNode(GNode dead, GNode remp) throws RemoteException ;
+ public void updateMappedNode(GNode dead, GNode remp, String _spawnerIP) throws RemoteException ;
+
+ public ArrayList<GNode> getGNodes() throws RemoteException ;
+
+ public void removeAlgo( String _id, int _mode ) throws RemoteException ;
+
+ public void setMapped( GNode _g, int _mode ) throws RemoteException ;
+
+ public void removeMappedGNode( GNode _g, int _mode ) throws RemoteException ;
+
+ // ** Tests ** //
+ public Algo getAlgo( String _spID ) throws RemoteException ;
}
/** ! **/