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 ofPipelineDescriptor
s
-
-
Constructor Summary
Constructors Constructor Description PipelineManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
PipelineDescriptor
get(String path)
Gets thePipelineDescriptor
for the given pathPipelineDescriptor
get(Path path)
Gets thePipelineDescriptor
for the given pathMap<String,Object>
getAvailablePipelines(String extractionId)
Gets the available pipelines for the given extractionString
getDefaultPipeline()
Gets the id of the defaultPipelineDescriptor
boolean
has(String path)
Returnstrue
if thePipelineDescriptor
for asked path existsvoid
initialize()
void
service(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:
service
in interfaceServiceable
- Throws:
ServiceException
-
initialize
public void initialize() throws Exception
- Specified by:
initialize
in interfaceInitializable
- Throws:
Exception
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
has
public boolean has(String path) throws IOException
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
public PipelineDescriptor get(Path path) throws IOException
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
public PipelineDescriptor get(String path) throws IOException
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
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
-
-