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
PipelineDescriptor
s-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Gets thePipelineDescriptor
for the given pathGets thePipelineDescriptor
for the given pathgetAvailablePipelines
(String extractionId) Gets the available pipelines for the given extractionGets the id of the defaultPipelineDescriptor
boolean
Returnstrue
if thePipelineDescriptor
for asked path existsvoid
void
service
(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
has
Returnstrue
if thePipelineDescriptor
for asked path exists- Parameters:
path
- The path of thePipelineDescriptor
- Returns:
true
if the asked pipeline exists- Throws:
IOException
- if an I/O exception occurred when accessing the root folder of pipeline files
-
get
Gets thePipelineDescriptor
for 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 thePipelineDescriptor
for 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
-