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 of
PipelineDescriptors-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Gets thePipelineDescriptorfor the given pathGets thePipelineDescriptorfor the given pathgetAvailablePipelines(String extractionId) Gets the available pipelines for the given extractionGets the id of the defaultPipelineDescriptorbooleanReturnstrueif thePipelineDescriptorfor asked path existsvoidvoidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The Avalon role.
-
-
Constructor Details
-
PipelineManager
public PipelineManager()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
dispose
- Specified by:
disposein interfaceDisposable
-
has
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
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
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
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
Gets the id of the defaultPipelineDescriptor- Returns:
- the id of the default
PipelineDescriptor
-