Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New development version.
[jaceP2P.git] / src / jaceP2P / JaceSuperNodeInterface.java
index 9779ef3..f3ef6bc 100644 (file)
@@ -2,6 +2,7 @@ package jaceP2P;
 
 import java.rmi.Remote;
 import java.rmi.RemoteException;
+import java.util.ArrayList;
 import java.util.Vector;
 
 import and.Mapping.Algo;
@@ -30,14 +31,16 @@ public interface JaceSuperNodeInterface extends Remote {
 
 //     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;
 
@@ -48,13 +51,26 @@ public interface JaceSuperNodeInterface extends Remote {
        /** ! **/
        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 ;
 }
 
 /** ! **/