public interface ExternalSystemTaskAware
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelTask(ExternalSystemTaskId id)
Allows to cancel the target task by the current service.
|
java.util.Map<ExternalSystemTaskType,java.util.Set<ExternalSystemTaskId>> |
getTasksInProgress()
Allows to ask current service for all tasks being executed at the moment.
|
boolean |
isTaskInProgress(ExternalSystemTaskId id)
Allows to check if current service executes the target task.
|
boolean isTaskInProgress(ExternalSystemTaskId id) throws java.rmi.RemoteException
id - target task's idtrue if a task with the given id is executed at the moment by the current service;
false otherwisejava.rmi.RemoteException - as required by RMIboolean cancelTask(ExternalSystemTaskId id) throws java.rmi.RemoteException
id - target task's idtrue if a task was successfully canceled;
false otherwisejava.rmi.RemoteException - as required by RMIjava.util.Map<ExternalSystemTaskType,java.util.Set<ExternalSystemTaskId>> getTasksInProgress() throws java.rmi.RemoteException
java.rmi.RemoteException - as required by RMI