1 |
package appl.parallel.event; |
2 |
|
3 |
import java.rmi.Remote; |
4 |
import java.rmi.RemoteException; |
5 |
|
6 |
import appl.parallel.client.RemoteEventHandler; |
7 |
import appl.parallel.services.RemoteEventProxy; |
8 |
|
9 |
|
10 |
/** |
11 |
* A event sink for communication events receives {@link TimeEvent}s and {@link TransferEvent}s |
12 |
* and processes them. |
13 |
* |
14 |
* @see RemoteEventHandler |
15 |
* @see RemoteEventProxy |
16 |
* @author Dominik Appl |
17 |
*/ |
18 |
public interface CommEventSink extends Remote, RemoteEventSink { |
19 |
|
20 |
|
21 |
/** |
22 |
* @return true if the service is running and time monitoring is enabled |
23 |
*/ |
24 |
public boolean isTimeMonitoringEnabled() throws RemoteException; |
25 |
|
26 |
/** |
27 |
* @return true if the service is running and transfer monitoring is enabled |
28 |
*/ |
29 |
public boolean isTransferMonitoringEnabled() throws RemoteException; |
30 |
|
31 |
} |