public class ExternalSystemFacadeWrapper<S extends ExternalSystemExecutionSettings> extends java.lang.Object implements RemoteExternalSystemFacade<S>
NULL_OBJECT
Constructor and Description |
---|
ExternalSystemFacadeWrapper(RemoteExternalSystemFacade<S> delegate,
RemoteExternalSystemProgressNotificationManager progressManager) |
Modifier and Type | Method and Description |
---|---|
void |
applyProgressManager(RemoteExternalSystemProgressNotificationManager progressManager)
Asks remote external system process to use given progress manager.
|
void |
applySettings(S settings)
Asks remote external system process to apply given settings.
|
boolean |
cancelTask(ExternalSystemTaskId id)
Allows to cancel the target task by the current service.
|
RemoteExternalSystemFacade<S> |
getDelegate() |
<any> |
getRawProjectResolver()
Same as
RemoteExternalSystemFacade.getResolver() , but operating on raw result |
RemoteExternalSystemProjectResolver<S> |
getResolver()
Exposes
'resolve external system project' service that works at another process. |
RemoteExternalSystemTaskManager<S> |
getTaskManager()
Exposes
'run external system task' service which works at another process. |
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.
|
public ExternalSystemFacadeWrapper(RemoteExternalSystemFacade<S> delegate, RemoteExternalSystemProgressNotificationManager progressManager)
public RemoteExternalSystemFacade<S> getDelegate()
public RemoteExternalSystemProjectResolver<S> getResolver() throws java.rmi.RemoteException, java.lang.IllegalStateException
RemoteExternalSystemFacade
'resolve external system project'
service that works at another process.getResolver
in interface RemoteExternalSystemFacade<S extends ExternalSystemExecutionSettings>
'resolve external system project'
servicejava.rmi.RemoteException
- in case of unexpected I/O exception during processingjava.lang.IllegalStateException
- in case of inability to create the servicepublic RemoteExternalSystemTaskManager<S> getTaskManager() throws java.rmi.RemoteException
RemoteExternalSystemFacade
'run external system task'
service which works at another process.getTaskManager
in interface RemoteExternalSystemFacade<S extends ExternalSystemExecutionSettings>
java.rmi.RemoteException
- in case of inability to create the servicepublic void applySettings(S settings) throws java.rmi.RemoteException
RemoteExternalSystemFacade
applySettings
in interface RemoteExternalSystemFacade<S extends ExternalSystemExecutionSettings>
settings
- settings to applyjava.rmi.RemoteException
- in case of unexpected I/O exception during processingpublic void applyProgressManager(RemoteExternalSystemProgressNotificationManager progressManager) throws java.rmi.RemoteException
RemoteExternalSystemFacade
applyProgressManager
in interface RemoteExternalSystemFacade<S extends ExternalSystemExecutionSettings>
progressManager
- progress manager to usejava.rmi.RemoteException
- in case of unexpected I/O exception during processingpublic <any> getRawProjectResolver() throws java.rmi.RemoteException
RemoteExternalSystemFacade
RemoteExternalSystemFacade.getResolver()
, but operating on raw resultgetRawProjectResolver
in interface RemoteExternalSystemFacade<S extends ExternalSystemExecutionSettings>
java.rmi.RemoteException
public boolean isTaskInProgress(ExternalSystemTaskId id) throws java.rmi.RemoteException
ExternalSystemTaskAware
isTaskInProgress
in interface ExternalSystemTaskAware
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 RMIpublic java.util.Map<ExternalSystemTaskType,java.util.Set<ExternalSystemTaskId>> getTasksInProgress() throws java.rmi.RemoteException
ExternalSystemTaskAware
getTasksInProgress
in interface ExternalSystemTaskAware
java.rmi.RemoteException
- as required by RMIpublic boolean cancelTask(ExternalSystemTaskId id) throws java.rmi.RemoteException
ExternalSystemTaskAware
cancelTask
in interface ExternalSystemTaskAware
id
- target task's idtrue
if a task was successfully canceled;
false
otherwisejava.rmi.RemoteException
- as required by RMI