3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.Vector;
9 public interface JaceInterface extends Remote {
10 public void reconnectSuperNode() throws RemoteException;
12 public int updateRegister(Register newReg, JaceInterface stub, int req)
13 throws RemoteException;
15 public Vector<?> getIterationOfBackup(int remoteRank, int tag)
16 throws RemoteException;
18 public Backup getRemoteBackup(int remoteRank, int tag)
19 throws RemoteException;
21 public void suicide(String debugMsg) throws RemoteException;
23 public void iSendYou(Message msg) throws RemoteException;
25 public int getTimeStep() throws RemoteException;
27 public void saveTask(int rank, byte[] tsk, int iteration, int timeStep,
28 String appliName, int tag) throws RemoteException;
30 public void setSaved(boolean bool) throws RemoteException;
32 public boolean getReloading() throws RemoteException;
34 public int getVerifNum() throws RemoteException;
36 public String getState() throws RemoteException;
38 public void initializeVerif(int tag) throws RemoteException;
40 public void savOrFinOrRest(int tag, int step, boolean verd,
41 Vector<?> reduceAll) throws RemoteException;
43 public boolean setNbNeighboursNotConv(int tag, int idNeigh,
44 int neighborTimeStep) throws RemoteException;
46 public int getNbNeighboursNotConv() throws RemoteException;
48 public void response(int neighId, int tag, int response,
49 Vector<?> recievedValue) throws RemoteException;
51 public boolean ping() throws RemoteException;
53 public void updateHeart(JaceInterface stub) throws RemoteException;
55 public void updateHeart(JaceSuperNodeInterface stub) throws RemoteException;
57 public long beating(JaceInterface stub) throws RemoteException;
59 public void setScanning(boolean bool) throws RemoteException;
61 // public JaceSpawnerInterface transformIntoSpawner(String[] params,
62 // String appliName, Register reg, int nbTasks,
63 // JaceSuperNodeInterface snodeStub, int rank, int heartTime, int tag,
64 // int nbdc, int nbsdc, int nbDaemonPerSpawner, int nbDaemonPerThread)
65 // throws RemoteException;
67 public JaceSpawnerInterface transformIntoSpawner(String[] params,
68 String appliName, Register reg, int nbTasks,
69 JaceSuperNodeInterface snodeStub, int rank, int heartTime, int tag,
70 int nbdc, int nbsdc, int nbDaemonPerSpawner, int nbDaemonPerThread, String idAlgo)
71 throws RemoteException;
73 public void setSpawner(JaceSpawnerInterface spawnerStub)
74 throws RemoteException;
76 public int updateRegister(Node oldNode, Node node, int rank) throws RemoteException;
78 public void getBackupForNewNode(int rank) throws RemoteException;
80 public void suicide2(String string)throws RemoteException ;