Package org.apache.hop.www
Class WorkflowMap
- java.lang.Object
-
- org.apache.hop.www.WorkflowMap
-
public class WorkflowMap extends Object
This is a map between the workflow name and the (running/waiting/finished) workflow.
-
-
Constructor Summary
Constructors Constructor Description WorkflowMap()
-
Method Summary
-
-
-
Method Detail
-
addWorkflow
public void addWorkflow(String workflowName, String serverObjectId, IWorkflowEngine<WorkflowMeta> workflow, WorkflowConfiguration workflowConfiguration)
-
replaceWorkflow
public void replaceWorkflow(IWorkflowEngine<WorkflowMeta> oldWorkflow, IWorkflowEngine<WorkflowMeta> workflow, WorkflowConfiguration workflowConfiguration)
-
getWorkflow
public IWorkflowEngine<WorkflowMeta> getWorkflow(String workflowName)
Find the first workflow in the list that comes to mind!- Parameters:
workflowName-- Returns:
- the first pipeline with the specified name
-
getWorkflow
public IWorkflowEngine<WorkflowMeta> getWorkflow(HopServerObjectEntry entry)
- Parameters:
entry- The HopServer workflow object- Returns:
- the workflow with the specified entry
-
getConfiguration
public WorkflowConfiguration getConfiguration(String workflowName)
-
getConfiguration
public WorkflowConfiguration getConfiguration(HopServerObjectEntry entry)
- Parameters:
entry- The HopServer workflow object- Returns:
- the workflow configuration with the specified entry
-
removeWorkflow
public void removeWorkflow(HopServerObjectEntry entry)
-
getWorkflowObjects
public List<HopServerObjectEntry> getWorkflowObjects()
-
getFirstHopServerObjectEntry
public HopServerObjectEntry getFirstHopServerObjectEntry(String workflowName)
-
getHopServerConfig
public HopServerConfig getHopServerConfig()
- Returns:
- the hopServerConfig
-
setHopServerConfig
public void setHopServerConfig(HopServerConfig hopServerConfig)
- Parameters:
hopServerConfig- the hopServerConfig to set
-
findWorkflow
public IWorkflowEngine<WorkflowMeta> findWorkflow(String id)
Find a workflow using the container/carte object ID.- Parameters:
id- the container/carte object ID- Returns:
- The workflow if it's found, null if the ID couldn't be found in the workflow map.
-
findWorkflow
public IWorkflowEngine<WorkflowMeta> findWorkflow(String workflowName, String id)
Find a workflow with an optional ID- Parameters:
workflowName- The name of the workflowid- The ID of the workflow or null if it's not provided- Returns:
- The workflow or null if it couldn't be found.
-
-