public abstract class AbstractRemoteExternalSystemServiceWrapper<S extends ExternalSystemExecutionSettings,T extends RemoteExternalSystemService<S>> extends java.lang.Object implements RemoteExternalSystemService<S>
| Constructor and Description |
|---|
AbstractRemoteExternalSystemServiceWrapper(T delegate) |
| Modifier and Type | Method and Description |
|---|---|
T |
getDelegate() |
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.
|
void |
setNotificationListener(ExternalSystemTaskNotificationListener notificationListener)
Allows to define notification callback to use within the current service
|
void |
setSettings(S settings)
Provides the service settings to use.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelTaskpublic AbstractRemoteExternalSystemServiceWrapper(T delegate)
public void setSettings(S settings) throws java.rmi.RemoteException
RemoteExternalSystemServicesetSettings in interface RemoteExternalSystemService<S extends ExternalSystemExecutionSettings>settings - settings to usejava.rmi.RemoteException - as required by RMIpublic void setNotificationListener(ExternalSystemTaskNotificationListener notificationListener) throws java.rmi.RemoteException
RemoteExternalSystemServicesetNotificationListener in interface RemoteExternalSystemService<S extends ExternalSystemExecutionSettings>notificationListener - notification listener to use with the current servicejava.rmi.RemoteException - as required by RMIpublic boolean isTaskInProgress(ExternalSystemTaskId id) throws java.rmi.RemoteException
ExternalSystemTaskAwareisTaskInProgress in interface ExternalSystemTaskAwareid - 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 RMIpublic java.util.Map<ExternalSystemTaskType,java.util.Set<ExternalSystemTaskId>> getTasksInProgress() throws java.rmi.RemoteException
ExternalSystemTaskAwaregetTasksInProgress in interface ExternalSystemTaskAwarejava.rmi.RemoteException - as required by RMIpublic T getDelegate()