Interface PipelineManager
- All Known Implementing Classes:
HazelcastPipelineManager,LocalPipelineManager
public interface PipelineManager
Responsible for pipeline execution.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for step changes.voidAdds a listener for worker status changes.executePipeline(Pipeline pipeline) Executes a pipeline.getPipelineProgress(String pipelineId) A snapshot of pipeline progress made so far.voidRemoves a listener for step changes.voidRemoves a listener for worker status changes.voidstop()Stops all pipeline executions.stopPipeline(String pipelineId) Stops a pipeline execution.
-
Method Details
-
executePipeline
Executes a pipeline.- Parameters:
pipeline- the pipeline to execute- Returns:
- a future containing the pipeline execution result
-
stopPipeline
Stops a pipeline execution.- Parameters:
pipelineId- id of the pipeline to stop- Returns:
- a future triggered when stopped
-
getPipelineProgress
A snapshot of pipeline progress made so far.- Parameters:
pipelineId- id of the pipeline to stop- Returns:
- pipeline progress
-
stop
void stop()Stops all pipeline executions. -
addStepChangeListener
Adds a listener for step changes.- Parameters:
listener- the listener to add
-
removeStepChangeListener
Removes a listener for step changes.- Parameters:
listener- the listener to remove
-
addWorkerStatusListener
Adds a listener for worker status changes.- Parameters:
listener- the listener to add
-
removeWorkerStatusListener
Removes a listener for worker status changes.- Parameters:
listener- the listener to remove
-