3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.ArrayList;
8 public interface JaceInterface extends Remote {
9 public void reconnectSuperNode() throws RemoteException;
11 public int updateRegister(Register newReg, JaceInterface stub, int req)
12 throws RemoteException;
14 public ArrayList<Integer> getIterationOfBackup(int remoteRank, int tag)
15 throws RemoteException;
17 public Backup getRemoteBackup(int remoteRank, int tag)
18 throws RemoteException;
20 public void suicide(String debugMsg) throws RemoteException;
22 public void iSendYou(Message msg) throws RemoteException;
24 public int getTimeStep() throws RemoteException;
26 public void saveTask(int rank, byte[] tsk, int iteration, int timeStep,
27 String appliName, int tag) throws RemoteException;
29 public void setSaved(boolean bool) throws RemoteException;
31 public boolean getReloading() throws RemoteException;
33 public int getVerifNum() throws RemoteException;
35 public String getState() throws RemoteException;
37 public void initializeVerif(int tag) throws RemoteException;
39 public void savOrFinOrRest(int tag, int step, boolean verd,
40 ArrayList<Object> reduceAll) throws RemoteException;
42 public boolean setNbNeighboursNotConv(int tag, int idNeigh,
43 int neighborTimeStep) throws RemoteException;
45 public int getNbNeighboursNotConv() throws RemoteException;
47 public void response(int neighId, int tag, int response,
48 ArrayList<Object> reduceAll) throws RemoteException;
50 public boolean ping() throws RemoteException;
52 public void updateHeart(JaceInterface stub) throws RemoteException;
54 public void updateHeart(JaceSuperNodeInterface stub) throws RemoteException;
56 public long beating(JaceInterface stub) throws RemoteException;
58 public void setScanning(boolean bool) throws RemoteException;
60 // public JaceSpawnerInterface transformIntoSpawner(String[] params,
61 // String appliName, Register reg, int nbTasks,
62 // JaceSuperNodeInterface snodeStub, int rank, int heartTime, int tag,
63 // int nbdc, int nbsdc, int nbDaemonPerSpawner, int nbDaemonPerThread)
64 // throws RemoteException;
66 public JaceSpawnerInterface transformIntoSpawner(String[] params,
67 String appliName, Register reg, int nbTasks,
68 JaceSuperNodeInterface snodeStub, int rank, int heartTime, int tag,
69 int nbdc, int nbsdc, int nbDaemonPerSpawner, int nbDaemonPerThread, String idAlgo)
70 throws RemoteException;
72 public void setSpawner(JaceSpawnerInterface spawnerStub)
73 throws RemoteException;
75 public int updateRegister(Node oldNode, Node node, int rank) throws RemoteException;
77 public void getBackupForNewNode(int rank) throws RemoteException;
79 public void suicide2(String string)throws RemoteException ;