@ApplicationScoped public class InMemoryPipelineRegistry extends Object implements PipelineRegistry
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.guvnor.ala.registry.inmemory.InMemoryPipelineRegistry.PipelineRegistryEntry> |
pipelineByName |
PIPELINE_NAME_SORT
Constructor and Description |
---|
InMemoryPipelineRegistry() |
Modifier and Type | Method and Description |
---|---|
Pipeline |
getPipelineByName(String pipelineId)
Gets a Pipeline by Name.
|
List<Pipeline> |
getPipelines(int page,
int pageSize,
String sort,
boolean sortOrder)
Gets all the registered Pipelines
|
List<Pipeline> |
getPipelines(String providerType,
String version,
int page,
int pageSize,
String sort,
boolean sortOrder)
Gets all the registered Pipelines for a given provider type.
|
ProviderType |
getProviderType(String pipelineId)
Gets the associated provider type for a given pipeline.
|
void |
registerPipeline(Pipeline pipeline)
Registers a Pipeline
|
void |
registerPipeline(Pipeline pipeline,
ProviderType providerType)
Registers a Pipeline by associating it to a provider type.
|
public void registerPipeline(Pipeline pipeline)
PipelineRegistry
registerPipeline
in interface PipelineRegistry
pipeline
- The Pipeline to be registered.public void registerPipeline(Pipeline pipeline, ProviderType providerType)
PipelineRegistry
registerPipeline
in interface PipelineRegistry
pipeline
- The Pipeline to be registered.providerType
- The provider type for associating the Pipeline.public Pipeline getPipelineByName(String pipelineId)
PipelineRegistry
getPipelineByName
in interface PipelineRegistry
pipelineId
- the pipeline id.public List<Pipeline> getPipelines(int page, int pageSize, String sort, boolean sortOrder)
PipelineRegistry
getPipelines
in interface PipelineRegistry
page
- the page numberpageSize
- the page sizesort
- the sort columnsortOrder
- the sort order to use: true ascending, false descendingpublic List<Pipeline> getPipelines(String providerType, String version, int page, int pageSize, String sort, boolean sortOrder)
PipelineRegistry
getPipelines
in interface PipelineRegistry
providerType
- A provider type name.version
- the provider type version.page
- the page numberpageSize
- the page sizesort
- the sort columnsortOrder
- the sort order to use: true ascending, false descendingpublic ProviderType getProviderType(String pipelineId)
PipelineRegistry
getProviderType
in interface PipelineRegistry
pipelineId
- a pipeline id.Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.