1 |
mojays |
2 |
package appl.parallel.starter; |
2 |
|
|
|
3 |
|
|
import java.rmi.Remote; |
4 |
|
|
import java.rmi.RemoteException; |
5 |
|
|
|
6 |
|
|
/** |
7 |
|
|
* An interface for programs which start themself other programs as separate |
8 |
|
|
* processes. It is possible to start/stop and restart the encapsulated process. |
9 |
|
|
* |
10 |
|
|
* @author Dominik Appl |
11 |
|
|
*/ |
12 |
|
|
|
13 |
|
|
public interface Starter extends Remote { |
14 |
|
|
/** |
15 |
|
|
* Starts the process |
16 |
|
|
* |
17 |
|
|
* @throws RemoteException |
18 |
|
|
*/ |
19 |
|
|
public void start() throws RemoteException; |
20 |
|
|
|
21 |
|
|
/** |
22 |
|
|
* stops the process |
23 |
|
|
* |
24 |
|
|
* @throws RemoteException |
25 |
|
|
*/ |
26 |
|
|
public void stop() throws RemoteException; |
27 |
|
|
|
28 |
|
|
/** |
29 |
|
|
* restarts the process |
30 |
|
|
* |
31 |
|
|
* @throws RemoteException |
32 |
|
|
*/ |
33 |
|
|
public void restart() throws RemoteException; |
34 |
|
|
|
35 |
|
|
/** |
36 |
|
|
* @return true, if the process is running |
37 |
|
|
* @throws RemoteException |
38 |
|
|
*/ |
39 |
|
|
public boolean isRunning() throws RemoteException; |
40 |
|
|
} |