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)
Deprecated.
|
PluginStateEvolution |
getIterationStateEvolution(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)
Deprecated.
|
PluginStateEvolution |
getStateEvolution(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,
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, boolean globally) throws ExecutorException
stop(String) 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, boolean).Exception - if there is no Task identified by the
provided UUID execution identifier as StringExecutorException@Deprecated PluginState getState(String executionIdentifier) throws PluginInstanceNotFoundException, ExecutorException
getStateEvolution(String) instead
The method use the provided UUID as String to retrieve the status of the
associated executionexecutionIdentifier - 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 StringPluginInstanceNotFoundExceptionExecutorExceptionPluginStateEvolution getStateEvolution(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 StringPluginInstanceNotFoundExceptionExecutorException@Deprecated PluginState getIterationState(String executionIdentifier, int iterationNumber) throws PluginInstanceNotFoundException, ExecutorException
getIterationStateEvolution(String, int) instead
The method use the provided UUID as String and the iteration number
to retrieve the status of the associated executionexecutionIdentifier - 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 StringPluginInstanceNotFoundExceptionExecutorExceptionPluginStateEvolution getIterationStateEvolution(String executionIdentifier, int iterationNumber) throws PluginInstanceNotFoundException, ExecutorException
executionIdentifier - UUID as String which identify the executioniterationNumber - iteration numberPluginStateEvolution which contains the state of the executionException - if there is no execution identified by the provided
UUID execution identifier as StringPluginInstanceNotFoundExceptionExecutorExceptionCopyright © 2018. All Rights Reserved.