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 changeSaveName( String _n1, String _n2, int _id ) throws RemoteException ;
43 public void setSavingNeighbor( ServicesClient _sn ) throws RemoteException ;
45 public void setSavingNeighbors( ArrayList<ServicesClient> _sn ) throws RemoteException ;
47 public void addSavingNeighbor( ServicesClient _sn ) throws RemoteException ;
49 public void addSavingNeighbors( ArrayList<ServicesClient> _sn ) throws RemoteException ;
51 public void replaceSavingNeighbor( ServicesClient _old, ServicesClient _new ) throws RemoteException ;
53 public int retrieveSave( String _saveName ) throws RemoteException ;
58 /** La programmation est un art, respectons ceux qui la pratiquent !! **/