Interface PipelineExecutorTaskManager
-
- All Known Implementing Classes:
PipelineExecutorTaskManagerImpl
public interface PipelineExecutorTaskManagerTask manager for executing pipeline tasks.- See Also:
PipelineExecutorTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPipelineExecutorTaskManager.ExecutionMode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(String taskId)Deletes a pipeline executor task that is in FINISHED, STOPPED or ERROR status.voiddestroy(String taskId)Destroys a pipeline executor task that was launched in ASYNCHRONOUS independently of the execution status.Stringexecute(PipelineExecutorTaskDef taskDef, PipelineExecutorTaskManager.ExecutionMode executionMode)Starts the execution of a task based on the taskDef provided as parameter.voidstop(String taskId)Stops a pipeline executor task that was launched in ASYNCHRONOUS mode that is in RUNNING or SCHEDULED status.
-
-
-
Method Detail
-
execute
String execute(PipelineExecutorTaskDef taskDef, PipelineExecutorTaskManager.ExecutionMode executionMode)
Starts the execution of a task based on the taskDef provided as parameter.- Parameters:
taskDef- a task definition to be executed.executionMode- indicates if the task should be executed in synchronous or asynchronous mode.- Returns:
- returns uuid of the created task.
- See Also:
PipelineExecutorTaskDef
-
destroy
void destroy(String taskId) throws PipelineExecutorException
Destroys a pipeline executor task that was launched in ASYNCHRONOUS independently of the execution status. All information related to the task is also removed from the PipelineExecutorRegistry.- Parameters:
taskId- the id of the task to be destroyed.- Throws:
PipelineExecutorException- throws exceptions when a task that fulfil the conditions couldn't be found.
-
stop
void stop(String taskId) throws PipelineExecutorException
Stops a pipeline executor task that was launched in ASYNCHRONOUS mode that is in RUNNING or SCHEDULED status.- Parameters:
taskId- the id of the task to stop.- Throws:
PipelineExecutorException- throws exceptions when a task that fulfil the conditions couldn't be found.
-
delete
void delete(String taskId) throws PipelineExecutorException
Deletes a pipeline executor task that is in FINISHED, STOPPED or ERROR status. All information related to the task is also removed from the PipelineExecutorRegistry.- Parameters:
taskId- the id of the task to be deleted.- Throws:
PipelineExecutorException- throws exceptions when a task that fulfil the conditions couldn't be found.
-
-