Class PipelineManager
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.extraction.execution.pipeline.PipelineManager
-
- All Implemented Interfaces:
LogEnabled,Disposable,Initializable,Component,Serviceable
public class PipelineManager extends AbstractLogEnabled implements Component, Serviceable, Initializable, Disposable
Manager ofPipelineDescriptors
-
-
Constructor Summary
Constructors Constructor Description PipelineManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()PipelineDescriptorget(String path)Gets thePipelineDescriptorfor the given pathPipelineDescriptorget(Path path)Gets thePipelineDescriptorfor the given pathMap<String,Object>getAvailablePipelines(String extractionId)Gets the available pipelines for the given extractionStringgetDefaultPipeline()Gets the id of the defaultPipelineDescriptorbooleanhas(String path)Returnstrueif thePipelineDescriptorfor asked path existsvoidinitialize()voidservice(ServiceManager manager)-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
PipelineManager
public PipelineManager()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
dispose
public void dispose()
- Specified by:
disposein interfaceDisposable
-
has
public boolean has(String path) throws IOException
Returnstrueif thePipelineDescriptorfor asked path exists- Parameters:
path- The path of thePipelineDescriptor- Returns:
trueif the asked pipeline exists- Throws:
IOException- if an I/O exception occurred when accessing the root folder of pipeline files
-
get
public PipelineDescriptor get(Path path) throws IOException
Gets thePipelineDescriptorfor the given path- Parameters:
path- The path of the pipeline- Returns:
- the request
PipelineDescriptor, or null if not found - Throws:
IOException- if an I/O exception occurred when accessing the root folder of pipeline files
-
get
public PipelineDescriptor get(String path) throws IOException
Gets thePipelineDescriptorfor the given path- Parameters:
path- The path of the pipeline- Returns:
- the request
PipelineDescriptor, or null if not found - Throws:
IOException- if an I/O exception occurred when accessing the root folder of pipeline files
-
getAvailablePipelines
public Map<String,Object> getAvailablePipelines(String extractionId) throws IOException
Gets the available pipelines for the given extraction- Parameters:
extractionId- the extraction's definition file name- Returns:
- the available pipelines
- Throws:
IOException- if an I/O exception occurred when accessing the root folder of pipeline files
-
getDefaultPipeline
public String getDefaultPipeline()
Gets the id of the defaultPipelineDescriptor- Returns:
- the id of the default
PipelineDescriptor
-
-