Class InMemoryPipelineRegistry

    • Field Detail

      • pipelineByName

        protected Map<String,​org.guvnor.ala.registry.inmemory.InMemoryPipelineRegistry.PipelineRegistryEntry> pipelineByName
    • Constructor Detail

      • InMemoryPipelineRegistry

        public InMemoryPipelineRegistry()
    • Method Detail

      • registerPipeline

        public void registerPipeline​(Pipeline pipeline,
                                     ProviderType providerType)
        Description copied from interface: PipelineRegistry
        Registers a Pipeline by associating it to a provider type.
        Specified by:
        registerPipeline in interface PipelineRegistry
        Parameters:
        pipeline - The Pipeline to be registered.
        providerType - The provider type for associating the Pipeline.
      • getPipelineByName

        public Pipeline getPipelineByName​(String pipelineId)
        Description copied from interface: PipelineRegistry
        Gets a Pipeline by Name.
        Specified by:
        getPipelineByName in interface PipelineRegistry
        Parameters:
        pipelineId - the pipeline id.
        Returns:
        the pipeline corresponding to the pipeline id.
      • getPipelines

        public List<Pipeline> getPipelines​(int page,
                                           int pageSize,
                                           String sort,
                                           boolean sortOrder)
        Description copied from interface: PipelineRegistry
        Gets all the registered Pipelines
        Specified by:
        getPipelines in interface PipelineRegistry
        Parameters:
        page - the page number
        pageSize - the page size
        sort - the sort column
        sortOrder - the sort order to use: true ascending, false descending
        Returns:
        a list with all the available pipelines.
      • getPipelines

        public List<Pipeline> getPipelines​(String providerType,
                                           String version,
                                           int page,
                                           int pageSize,
                                           String sort,
                                           boolean sortOrder)
        Description copied from interface: PipelineRegistry
        Gets all the registered Pipelines for a given provider type.
        Specified by:
        getPipelines in interface PipelineRegistry
        Parameters:
        providerType - A provider type name.
        version - the provider type version.
        page - the page number
        pageSize - the page size
        sort - the sort column
        sortOrder - the sort order to use: true ascending, false descending
        Returns:
        the list of pipelines associated to the given provider.
      • getProviderType

        public ProviderType getProviderType​(String pipelineId)
        Description copied from interface: PipelineRegistry
        Gets the associated provider type for a given pipeline.
        Specified by:
        getProviderType in interface PipelineRegistry
        Parameters:
        pipelineId - a pipeline id.
        Returns:
        a provider type in cases where the pipeline was associated to one, null in any other case.