Package org.apache.hop.core.gui
Class WorkflowTracker<T extends WorkflowMeta>
- java.lang.Object
-
- org.apache.hop.core.gui.WorkflowTracker<T>
-
public class WorkflowTracker<T extends WorkflowMeta> extends Object
Responsible for tracking the execution of a workflow as a hierarchy.
-
-
Constructor Summary
Constructors Constructor Description WorkflowTracker(T workflowMeta)WorkflowTracker(T workflowMeta, int maxChildren)WorkflowTracker(T workflowMeta, int maxChildren, ActionResult result)Creates a workflow tracker with a single resultWorkflowTracker(T workflowMeta, ActionResult result)Creates a workflow tracker with a single result (maxChildren children are kept)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWorkflowTracker(WorkflowTracker workflowTracker)voidclear()WorkflowTrackerfindWorkflowTracker(ActionMeta actionMeta)Finds the WorkflowTracker for the action specified.ActionResultgetActionResult()intgetMaxChildren()WorkflowTrackergetParentWorkflowTracker()intgetTotalNumberOfItems()StringgetWorfkflowFilename()StringgetWorkflowName()WorkflowTrackergetWorkflowTracker(int i)List<WorkflowTracker>getWorkflowTrackers()Returns a list that contains all workflow trackers.intnrWorkflowTrackers()voidsetActionResult(ActionResult result)voidsetMaxChildren(int maxChildren)voidsetParentWorkflowTracker(WorkflowTracker parentWorkflowTracker)voidsetWorkflowFilename(String workflowFilename)voidsetWorkflowName(String workflowName)voidsetWorkflowTrackers(List<WorkflowTracker> workflowTrackers)
-
-
-
Constructor Detail
-
WorkflowTracker
public WorkflowTracker(T workflowMeta)
- Parameters:
workflowMeta- the workflow metadata to keep track of (with maximum 5000 children)
-
WorkflowTracker
public WorkflowTracker(T workflowMeta, int maxChildren)
- Parameters:
workflowMeta- The workflow metadata to trackmaxChildren- The maximum number of children to keep track of (1000 is the default)
-
WorkflowTracker
public WorkflowTracker(T workflowMeta, ActionResult result)
Creates a workflow tracker with a single result (maxChildren children are kept)- Parameters:
workflowMeta- the workflow metadata to keep track ofresult- the action result to track.
-
WorkflowTracker
public WorkflowTracker(T workflowMeta, int maxChildren, ActionResult result)
Creates a workflow tracker with a single result- Parameters:
workflowMeta- the workflow metadata to keep track ofmaxChildren- The maximum number of children to keep track ofresult- the action result to track.
-
-
Method Detail
-
addWorkflowTracker
public void addWorkflowTracker(WorkflowTracker workflowTracker)
-
getWorkflowTracker
public WorkflowTracker getWorkflowTracker(int i)
-
nrWorkflowTrackers
public int nrWorkflowTrackers()
-
getWorkflowTrackers
public List<WorkflowTracker> getWorkflowTrackers()
Returns a list that contains all workflow trackers. The list is created as a defensive copy of internal trackers' storage.- Returns:
- list of workflow trackers
-
setWorkflowTrackers
public void setWorkflowTrackers(List<WorkflowTracker> workflowTrackers)
- Parameters:
workflowTrackers- The workflowTrackers to set.
-
getActionResult
public ActionResult getActionResult()
- Returns:
- Returns the result.
-
setActionResult
public void setActionResult(ActionResult result)
- Parameters:
result- The result to set.
-
clear
public void clear()
-
findWorkflowTracker
public WorkflowTracker findWorkflowTracker(ActionMeta actionMeta)
Finds the WorkflowTracker for the action specified. Use this to- Parameters:
actionMeta- The action to search the workflow tracker for- Returns:
- The WorkflowTracker of null if none could be found...
-
getParentWorkflowTracker
public WorkflowTracker getParentWorkflowTracker()
- Returns:
- Returns the parentWorkflowTracker.
-
setParentWorkflowTracker
public void setParentWorkflowTracker(WorkflowTracker parentWorkflowTracker)
- Parameters:
parentWorkflowTracker- The parentWorkflowTracker to set.
-
getTotalNumberOfItems
public int getTotalNumberOfItems()
-
getWorfkflowFilename
public String getWorfkflowFilename()
- Returns:
- the workflowFilename
-
setWorkflowFilename
public void setWorkflowFilename(String workflowFilename)
- Parameters:
workflowFilename- the workflowFilename to set
-
getWorkflowName
public String getWorkflowName()
- Returns:
- the workflowName
-
setWorkflowName
public void setWorkflowName(String workflowName)
- Parameters:
workflowName- the workflowName to set
-
getMaxChildren
public int getMaxChildren()
- Returns:
- the maxChildren
-
setMaxChildren
public void setMaxChildren(int maxChildren)
- Parameters:
maxChildren- the maxChildren to set
-
-