public interface PipelineExecutorTaskManager
PipelineExecutorTask
Modifier and Type | Interface and Description |
---|---|
static class |
PipelineExecutorTaskManager.ExecutionMode |
Modifier and Type | Method and Description |
---|---|
void |
delete(String taskId)
Deletes a pipeline executor task that is in FINISHED, STOPPED or ERROR status.
|
void |
destroy(String taskId)
Destroys a pipeline executor task that was launched in ASYNCHRONOUS independently of the execution status.
|
String |
execute(PipelineExecutorTaskDef taskDef,
PipelineExecutorTaskManager.ExecutionMode executionMode)
Starts the execution of a task based on the taskDef provided as parameter.
|
void |
stop(String taskId)
Stops a pipeline executor task that was launched in ASYNCHRONOUS mode that is in RUNNING or SCHEDULED status.
|
String execute(PipelineExecutorTaskDef taskDef, PipelineExecutorTaskManager.ExecutionMode executionMode)
taskDef
- a task definition to be executed.executionMode
- indicates if the task should be executed in synchronous or asynchronous mode.PipelineExecutorTaskDef
void destroy(String taskId) throws PipelineExecutorException
taskId
- the id of the task to be destroyed.PipelineExecutorException
- throws exceptions when a task that fulfil the conditions couldn't be found.void stop(String taskId) throws PipelineExecutorException
taskId
- the id of the task to stop.PipelineExecutorException
- throws exceptions when a task that fulfil the conditions couldn't be found.void delete(String taskId) throws PipelineExecutorException
taskId
- the id of the task to be deleted.PipelineExecutorException
- throws exceptions when a task that fulfil the conditions couldn't be found.Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.