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