3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.Vector;
7 import and.Mapping.Algo;
8 import and.Mapping.GNode;
10 public interface JaceSuperNodeInterface extends Remote {
11 // public void workerRegistering(JaceInterface workerStub, String workerIP,
12 // String workerName, int port) throws RemoteException;
14 public void workerRegistering(JaceInterface workerStub, String workerIP,
15 String workerName, int port, GNode g) throws RemoteException;
17 public int getSuperNodeBeat() throws RemoteException;
19 public void beating(JaceInterface stub) throws RemoteException;
21 public void beating(boolean bool) throws RemoteException;
23 // public Register getRegisterSpawner(String spawnerIP, int nbTasks)
24 // throws RemoteException;
26 public Register getRegisterSpawner(String spawnerIP, int nbTasks, Task t,
27 int nbNodes, int algo, double param) throws RemoteException;
29 // public Register reserveLocalNodes(int nb) throws RemoteException;
31 // public Node getNewNode(String spawnerIP) throws RemoteException;
33 public Node getNewNode(String spawnerIP, Node _deadNode) throws RemoteException;
35 public Vector<?> sendStub(String IP, int port, JaceSuperNodeInterface stub)
36 throws RemoteException;
38 public void updateCountNode(String IP, int nb) throws RemoteException;
40 public void sendSurplus(Vector<?> nodes) throws RemoteException;
42 public void removeSuperNode(SuperNodeData d) throws RemoteException;
44 public void setToken() throws RemoteException;
46 public void updateHeart(JaceSuperNodeInterface stub) throws RemoteException;
49 public void addGNode( GNode _g ) throws RemoteException ;
51 public void removeGNode( GNode _g ) throws RemoteException ;
53 public boolean blockForMapping() throws RemoteException ;
55 public void setMapping( Algo al ) throws RemoteException ;