Package org.guvnor.ala.registry
Interface PipelineExecutorRegistry
-
- All Known Implementing Classes:
InMemoryPipelineExecutorRegistry
public interface PipelineExecutorRegistryRegistry for storing the pipeline execution traces produced by pipelines launched by the PipelineExecutorTaskManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderegister(String pipelineExecutionId)Deregisters a pipeline executor trace.PipelineExecutorTracegetExecutorTrace(String pipelineExecutionId)Gets a registered pipeline executor trace.PipelineExecutorTracegetExecutorTrace(RuntimeId runtimeId)Gets the pipeline executor trace that produced a runtime.Collection<PipelineExecutorTrace>getExecutorTraces()Get the currently registered pipeline executor traces.voidregister(PipelineExecutorTrace trace)Registers a pipeline executor trace.
-
-
-
Method Detail
-
register
void register(PipelineExecutorTrace trace)
Registers a pipeline executor trace.- Parameters:
trace- a pipeline executor trace for registering.
-
deregister
void deregister(String pipelineExecutionId)
Deregisters a pipeline executor trace.- Parameters:
pipelineExecutionId- the identifier of the trace to deregister.
-
getExecutorTrace
PipelineExecutorTrace getExecutorTrace(String pipelineExecutionId)
Gets a registered pipeline executor trace.- Parameters:
pipelineExecutionId- the identifier of trace.- Returns:
- the registered pipeline executor trace, when exists, or null in any other case.
-
getExecutorTraces
Collection<PipelineExecutorTrace> getExecutorTraces()
Get the currently registered pipeline executor traces.- Returns:
- a list of pipeline executor traces.
-
getExecutorTrace
PipelineExecutorTrace getExecutorTrace(RuntimeId runtimeId)
Gets the pipeline executor trace that produced a runtime.- Parameters:
runtimeId- a runtime for finding the associated pipeline executor trace.- Returns:
- the pipeline executor trace associated to the runtime if exits, null in any other case.
-
-