Package org.guvnor.ala.registry.inmemory
Class InMemoryPipelineExecutorRegistry
- java.lang.Object
-
- org.guvnor.ala.registry.inmemory.InMemoryPipelineExecutorRegistry
-
- All Implemented Interfaces:
PipelineExecutorRegistry
@ApplicationScoped public class InMemoryPipelineExecutorRegistry extends Object implements PipelineExecutorRegistry
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,PipelineExecutorTrace>recordsMap
-
Constructor Summary
Constructors Constructor Description InMemoryPipelineExecutorRegistry()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
recordsMap
protected Map<String,PipelineExecutorTrace> recordsMap
-
-
Method Detail
-
register
public void register(PipelineExecutorTrace trace)
Description copied from interface:PipelineExecutorRegistryRegisters a pipeline executor trace.- Specified by:
registerin interfacePipelineExecutorRegistry- Parameters:
trace- a pipeline executor trace for registering.
-
deregister
public void deregister(String pipelineExecutionId)
Description copied from interface:PipelineExecutorRegistryDeregisters a pipeline executor trace.- Specified by:
deregisterin interfacePipelineExecutorRegistry- Parameters:
pipelineExecutionId- the identifier of the trace to deregister.
-
getExecutorTrace
public PipelineExecutorTrace getExecutorTrace(String pipelineExecutionId)
Description copied from interface:PipelineExecutorRegistryGets a registered pipeline executor trace.- Specified by:
getExecutorTracein interfacePipelineExecutorRegistry- Parameters:
pipelineExecutionId- the identifier of trace.- Returns:
- the registered pipeline executor trace, when exists, or null in any other case.
-
getExecutorTraces
public Collection<PipelineExecutorTrace> getExecutorTraces()
Description copied from interface:PipelineExecutorRegistryGet the currently registered pipeline executor traces.- Specified by:
getExecutorTracesin interfacePipelineExecutorRegistry- Returns:
- a list of pipeline executor traces.
-
getExecutorTrace
public PipelineExecutorTrace getExecutorTrace(RuntimeId runtimeId)
Description copied from interface:PipelineExecutorRegistryGets the pipeline executor trace that produced a runtime.- Specified by:
getExecutorTracein interfacePipelineExecutorRegistry- 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.
-
-