Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Refunding the restart mechanism.
[hpcvm.git] / src / and / hpcvm / ServicesClient.java
1 package and.hpcvm ;
2
3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.ArrayList;
6
7 public interface ServicesClient extends Remote
8 {
9         public void emergencyStop() throws RemoteException ;
10         
11         public int startVM( int _mode ) throws RemoteException ;
12         
13         public int stopVM() throws RemoteException ;
14         
15         public int suspendVM( int _mode ) throws RemoteException ;
16         
17         public int restartVM() throws RemoteException ;
18         
19         public int restartVMAfterCrash() throws RemoteException ;
20         
21         public int saveVM() throws RemoteException ;
22         
23         public int reloadConfig() throws RemoteException ;
24         
25         public int start() throws RemoteException ;
26         
27         public void stop() throws RemoteException ;
28         
29         public String getIPHost() throws RemoteException ;
30         
31         public String getIPVM() throws RemoteException ;
32         
33         public String getWorkingDirectory() throws RemoteException ;
34         
35         public void setIPVM( String _ipVM ) throws RemoteException ;
36         
37         public String getName() throws RemoteException ;
38         
39         public void saveOk() throws RemoteException ;
40         
41         public void responseSave( boolean _b ) throws RemoteException ;
42         
43         public Integer deployVM( String _name, String _archive, String _directory ) throws RemoteException ;
44         
45         public void changeSaveName( String _n1, String _n2, int _id ) throws RemoteException ;
46         
47         public void setSaveNeighbor( SaveNeighbor _sn ) throws RemoteException ;
48         
49         public void setSaveNeighbors( ArrayList<SaveNeighbor> _sn ) throws RemoteException ;
50         
51         public void addSaveNeighbor( SaveNeighbor _sn ) throws RemoteException ;
52         
53         public void addSaveNeighbors( ArrayList<SaveNeighbor> _sn ) throws RemoteException ;
54         
55         public void replaceSaveNeighbor( SaveNeighbor _old, SaveNeighbor _new ) throws RemoteException ;
56         
57         public int retrieveSave( String _saveName ) throws RemoteException ;
58         
59 }
60
61
62 /** La programmation est un art, respectons ceux qui la pratiquent !! **/
63