Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
f49b5983c82eae35eb21ec9d63d497188f817b1f
[jaceP2P.git] / src / jaceP2P / JaceInterface.java
1 package jaceP2P;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.Vector;
6
7
8
9 public interface JaceInterface extends Remote {
10         public void reconnectSuperNode() throws RemoteException;
11
12         public int updateRegister(Register newReg, JaceInterface stub, int req)
13                         throws RemoteException;
14
15         public Vector<?> getIterationOfBackup(int remoteRank, int tag)
16                         throws RemoteException;
17
18         public Backup getRemoteBackup(int remoteRank, int tag)
19                         throws RemoteException;
20
21         public void suicide(String debugMsg) throws RemoteException;
22
23         public void iSendYou(Message msg) throws RemoteException;
24
25         public int getTimeStep() throws RemoteException;
26
27         public void saveTask(int rank, byte[] tsk, int iteration, int timeStep,
28                         String appliName, int tag) throws RemoteException;
29
30         public void setSaved(boolean bool) throws RemoteException;
31
32         public boolean getReloading() throws RemoteException;
33
34         public int getVerifNum() throws RemoteException;
35
36         public String getState() throws RemoteException;
37
38         public void initializeVerif(int tag) throws RemoteException;
39
40         public void savOrFinOrRest(int tag, int step, boolean verd,
41                         Vector<?> reduceAll) throws RemoteException;
42
43         public boolean setNbNeighboursNotConv(int tag, int idNeigh,
44                         int neighborTimeStep) throws RemoteException;
45
46         public int getNbNeighboursNotConv() throws RemoteException;
47
48         public void response(int neighId, int tag, int response,
49                         Vector<?> recievedValue) throws RemoteException;
50
51         public boolean ping() throws RemoteException;
52
53         public void updateHeart(JaceInterface stub) throws RemoteException;
54
55         public void updateHeart(JaceSuperNodeInterface stub) throws RemoteException;
56
57         public long beating(JaceInterface stub) throws RemoteException;
58
59         public void setScanning(boolean bool) throws RemoteException;
60
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;
66         
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;
72
73         public void setSpawner(JaceSpawnerInterface spawnerStub)
74                         throws RemoteException;
75
76         public void updateRegister(Node oldNode, Node node) throws RemoteException;
77
78         public void getBackupForNewNode(int rank) throws RemoteException;
79 }