Logo AND Algorithmique Numérique Distribuée

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