public interface SmartExecutor
| Modifier and Type | Field and Description |
|---|---|
static String |
TARGET_NAMESPACE |
static String |
WEB_SERVICE_SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
PluginState |
getIterationState(String executionIdentifier,
int iterationNumber)
The method use the provided UUID as String and the iteration number
to retrieve the status of the associated execution
|
PluginState |
getState(String executionIdentifier)
The method use the provided UUID as String to retrieve the status of the
associated execution
|
String |
launch(LaunchParameter launchParameter)
Launch the plugin identified by the name provided as parameters
with the provided inputs.
|
boolean |
stop(String executionIdentifier)
The method use the provided UUID execution identifier as String to
stop the last running execution of a Task (if any).
|
boolean |
unSchedule(String executionIdentifier)
The method use the provided UUID execution identifier as String to
stop the last running execution of a Task (if any) and release the
the scheduling if the Task is a Scheduled Task.
|
boolean |
unSchedule(String executionIdentifier,
boolean globally)
The method use the provided UUID execution identifier as String to
stop the last running execution of a Task (if any) and release the
the scheduling if the Task is a Scheduled Task.
|
static final String TARGET_NAMESPACE
static final String WEB_SERVICE_SERVICE_NAME
String launch(LaunchParameter launchParameter) throws InputsNullException, PluginNotFoundException, LaunchException, ExecutorException
launchParameter - which contains the name of the plugin to launch
and the input to be provided to plugin to run and the scheduling
strategy.InputsNullException - if LaunchParameter contains null
inputs.PluginNotFoundException - if LaunchParameter contains a
name of a plugin which is not available on classpathLaunchException - if an error occurs trying to instantiate and/or
launch the plugin executionExecutorException - if any other undefined error occurboolean stop(String executionIdentifier) throws ExecutorException
executionIdentifier - UUID as String which identify the executionException - if there is no Task identified by the
provided UUID execution identifier as StringExecutorExceptionboolean unSchedule(String executionIdentifier) throws ExecutorException
SmartExecutor#stop() method.
Invoking this method has the same side effect of invoking
unSchedule(String, boolean) passing false
to the second argumentexecutionIdentifier - UUID as String which identify the executionException - if there is no Task identified by the
provided UUID execution identifier as StringExecutorExceptionboolean unSchedule(String executionIdentifier, boolean globally) throws ExecutorException
SmartExecutor#stop() method.executionIdentifier - UUID as String which identify the executionglobally - a boolean which when true indicate if releasing the
Scheduled Task globally, so that no other SmartExecutor instance will
take in charge the scheduling. When false this invocation has the same
side effect of invoking unSchedule(String).Exception - if there is no Task identified by the
provided UUID execution identifier as StringExecutorExceptionPluginState getState(String executionIdentifier) throws PluginInstanceNotFoundException, ExecutorException
executionIdentifier - UUID as String which identify the executionPluginState which contains the state of the executionException - if there is no execution identified by the provided
UUID execution identifier as StringPluginInstanceNotFoundExceptionExecutorExceptionPluginState getIterationState(String executionIdentifier, int iterationNumber) throws PluginInstanceNotFoundException, ExecutorException
executionIdentifier - UUID as String which identify the executioniterationNumber - iteration numberPluginState which contains the state of the executionException - if there is no execution identified by the provided
UUID execution identifier as StringPluginInstanceNotFoundExceptionExecutorExceptionCopyright © 2016. All Rights Reserved.