3 import java.rmi.Remote;
4 import java.rmi.RemoteException;
5 import java.util.ArrayList;
7 public interface ServicesClient extends Remote
9 public void emergencyStop() throws RemoteException ;
11 public int startVM( int _mode ) throws RemoteException ;
13 public int stopVM() throws RemoteException ;
15 public int suspendVM( int _mode ) throws RemoteException ;
17 public int restartVM() throws RemoteException ;
19 public int restartVMAfterCrash() throws RemoteException ;
21 public int saveVM() throws RemoteException ;
23 public int reloadConfig() throws RemoteException ;
25 public int start() throws RemoteException ;
27 public void stop() throws RemoteException ;
29 public String getIPHost() throws RemoteException ;
31 public String getIPVM() throws RemoteException ;
33 public String getWorkingDirectory() throws RemoteException ;
35 public void setIPVM( String _ipVM ) throws RemoteException ;
37 public String getName() throws RemoteException ;
39 public void saveOk() throws RemoteException ;
41 public void responseSave( boolean _b ) throws RemoteException ;
43 public Integer deployVM( String _name, String _archive, String _directory ) throws RemoteException ;
45 public void changeSaveName( String _n1, String _n2, int _id ) throws RemoteException ;
47 public void setSaveNeighbor( SaveNeighbor _sn ) throws RemoteException ;
49 public void setSaveNeighbors( ArrayList<SaveNeighbor> _sn ) throws RemoteException ;
51 public void addSaveNeighbor( SaveNeighbor _sn ) throws RemoteException ;
53 public void addSaveNeighbors( ArrayList<SaveNeighbor> _sn ) throws RemoteException ;
55 public void replaceSaveNeighbor( SaveNeighbor _old, SaveNeighbor _new ) throws RemoteException ;
57 public int retrieveSave( String _saveName ) throws RemoteException ;
62 /** La programmation est un art, respectons ceux qui la pratiquent !! **/