Interface PipelineRegistry

  • All Known Implementing Classes:
    InMemoryPipelineRegistry

    public interface PipelineRegistry
    Represents the PipelineRegistry where all the Pipelines are registered
    • Method Detail

      • registerPipeline

        void registerPipeline​(Pipeline pipeline)
        Registers a Pipeline
        Parameters:
        pipeline - The Pipeline to be registered.
      • registerPipeline

        void registerPipeline​(Pipeline pipeline,
                              ProviderType providerType)
        Registers a Pipeline by associating it to a provider type.
        Parameters:
        pipeline - The Pipeline to be registered.
        providerType - The provider type for associating the Pipeline.
      • getPipelineByName

        Pipeline getPipelineByName​(String pipelineId)
        Gets a Pipeline by Name.
        Parameters:
        pipelineId - the pipeline id.
        Returns:
        the pipeline corresponding to the pipeline id.
      • getPipelines

        List<Pipeline> getPipelines​(int page,
                                    int pageSize,
                                    String sort,
                                    boolean sortOrder)
        Gets all the registered Pipelines
        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

        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.
        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

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