Package org.apache.hop.www
Class PipelineMap
- java.lang.Object
-
- org.apache.hop.www.PipelineMap
-
public class PipelineMap extends Object
This is a map between the pipeline name and the (running/waiting/finished) pipeline.
-
-
Constructor Summary
Constructors Constructor Description PipelineMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPipeline(String pipelineName, String containerObjectId, IPipelineEngine<PipelineMeta> pipeline, PipelineConfiguration pipelineConfiguration)Add a pipeline to the mapPipelineConfigurationgetConfiguration(String pipelineName)PipelineConfigurationgetConfiguration(HopServerObjectEntry entry)HopServerObjectEntrygetFirstServerObjectEntry(String pipelineName)HopServerConfiggetHopServerConfig()IPipelineEngine<PipelineMeta>getPipeline(String pipelineName)Find the first pipeline in the list that comes to mind!IPipelineEngine<PipelineMeta>getPipeline(HopServerObjectEntry entry)List<HopServerObjectEntry>getPipelineObjects()voidregisterPipeline(Pipeline pipeline, PipelineConfiguration pipelineConfiguration)voidremovePipeline(HopServerObjectEntry entry)voidsetHopServerConfig(HopServerConfig hopServerConfig)
-
-
-
Method Detail
-
addPipeline
public void addPipeline(String pipelineName, String containerObjectId, IPipelineEngine<PipelineMeta> pipeline, PipelineConfiguration pipelineConfiguration)
Add a pipeline to the map- Parameters:
pipelineName- The name of the pipeline to addcontainerObjectId- the unique ID of the pipeline in this container.pipeline- The pipeline to addpipelineConfiguration- the pipeline configuration to add
-
registerPipeline
public void registerPipeline(Pipeline pipeline, PipelineConfiguration pipelineConfiguration)
-
getPipeline
public IPipelineEngine<PipelineMeta> getPipeline(String pipelineName)
Find the first pipeline in the list that comes to mind!- Parameters:
pipelineName-- Returns:
- the first pipeline with the specified name
-
getPipeline
public IPipelineEngine<PipelineMeta> getPipeline(HopServerObjectEntry entry)
- Parameters:
entry- The HopServer pipeline object- Returns:
- the pipeline with the specified entry
-
getConfiguration
public PipelineConfiguration getConfiguration(String pipelineName)
- Parameters:
pipelineName-- Returns:
- The first pipeline configuration with the specified name
-
getConfiguration
public PipelineConfiguration getConfiguration(HopServerObjectEntry entry)
- Parameters:
entry- The HopServer pipeline object- Returns:
- the pipeline configuration with the specified entry
-
removePipeline
public void removePipeline(HopServerObjectEntry entry)
- Parameters:
entry- the HopServer object entry
-
getPipelineObjects
public List<HopServerObjectEntry> getPipelineObjects()
-
getFirstServerObjectEntry
public HopServerObjectEntry getFirstServerObjectEntry(String pipelineName)
-
getHopServerConfig
public HopServerConfig getHopServerConfig()
- Returns:
- the hopServerConfig
-
setHopServerConfig
public void setHopServerConfig(HopServerConfig hopServerConfig)
- Parameters:
hopServerConfig- the hopServerConfig to set
-
-