Package org.pentaho.di.core.gui
Class JobTracker
java.lang.Object
org.pentaho.di.core.gui.JobTracker
Responsible for tracking the execution of a job as a hierarchy.
- Since:
- 30-mar-2006
- Author:
- Matt
-
Constructor Summary
ConstructorsConstructorDescriptionJobTracker(JobMeta jobMeta) JobTracker(JobMeta jobMeta, int maxChildren) JobTracker(JobMeta jobMeta, int maxChildren, JobEntryResult result) Creates a jobtracker with a single resultJobTracker(JobMeta jobMeta, JobEntryResult result) Creates a jobtracker with a single result (maxChildren children are kept) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJobTracker(JobTracker jobTracker) voidclear()findJobTracker(JobEntryCopy jobEntryCopy) Finds the JobTracker for the job entry specified.getJobTracker(int i) Returns a list that contains all job trackers.intintintvoidsetJobEntryResult(JobEntryResult result) voidsetJobFilename(String jobFilename) voidsetJobName(String jobName) voidsetJobTrackers(List<JobTracker> jobTrackers) voidsetMaxChildren(int maxChildren) voidsetParentJobTracker(JobTracker parentJobTracker)
-
Constructor Details
-
JobTracker
- Parameters:
jobMeta- the job metadata to keep track of (with maximum 5000 children)
-
JobTracker
- Parameters:
jobMeta- The job metadata to trackmaxChildren- The maximum number of children to keep track of (1000 is the default)
-
JobTracker
Creates a jobtracker with a single result (maxChildren children are kept)- Parameters:
jobMeta- the job metadata to keep track ofresult- the job entry result to track.
-
JobTracker
Creates a jobtracker with a single result- Parameters:
jobMeta- the job metadata to keep track ofmaxChildren- The maximum number of children to keep track ofresult- the job entry result to track.
-
-
Method Details
-
addJobTracker
-
getJobTracker
-
nrJobTrackers
public int nrJobTrackers() -
getJobTrackers
Returns a list that contains all job trackers. The list is created as a defensive copy of internal trackers' storage.- Returns:
- list of job trackers
-
setJobTrackers
- Parameters:
jobTrackers- The jobTrackers to set.
-
getJobEntryResult
- Returns:
- Returns the result.
-
setJobEntryResult
- Parameters:
result- The result to set.
-
clear
public void clear() -
findJobTracker
Finds the JobTracker for the job entry specified. Use this to- Parameters:
jobEntryCopy- The entry to search the job tracker for- Returns:
- The JobTracker of null if none could be found...
-
getParentJobTracker
- Returns:
- Returns the parentJobTracker.
-
setParentJobTracker
- Parameters:
parentJobTracker- The parentJobTracker to set.
-
getTotalNumberOfItems
public int getTotalNumberOfItems() -
getJobFilename
- Returns:
- the jobFilename
-
setJobFilename
- Parameters:
jobFilename- the jobFilename to set
-
getJobName
- Returns:
- the jobName
-
setJobName
- Parameters:
jobName- the jobName to set
-
getMaxChildren
public int getMaxChildren()- Returns:
- the maxChildren
-
setMaxChildren
public void setMaxChildren(int maxChildren) - Parameters:
maxChildren- the maxChildren to set
-