Package org.pentaho.di.core.gui
Class JobTracker
- java.lang.Object
-
- org.pentaho.di.core.gui.JobTracker
-
public class JobTracker extends Object
Responsible for tracking the execution of a job as a hierarchy.- Since:
- 30-mar-2006
- Author:
- Matt
-
-
Constructor Summary
Constructors Constructor Description JobTracker(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addJobTracker(JobTracker jobTracker)
void
clear()
JobTracker
findJobTracker(JobEntryCopy jobEntryCopy)
Finds the JobTracker for the job entry specified.JobEntryResult
getJobEntryResult()
String
getJobFilename()
String
getJobName()
JobTracker
getJobTracker(int i)
List<JobTracker>
getJobTrackers()
Returns a list that contains all job trackers.int
getMaxChildren()
JobTracker
getParentJobTracker()
int
getTotalNumberOfItems()
int
nrJobTrackers()
void
setJobEntryResult(JobEntryResult result)
void
setJobFilename(String jobFilename)
void
setJobName(String jobName)
void
setJobTrackers(List<JobTracker> jobTrackers)
void
setMaxChildren(int maxChildren)
void
setParentJobTracker(JobTracker parentJobTracker)
-
-
-
Constructor Detail
-
JobTracker
public JobTracker(JobMeta jobMeta)
- Parameters:
jobMeta
- the job metadata to keep track of (with maximum 5000 children)
-
JobTracker
public JobTracker(JobMeta jobMeta, int maxChildren)
- Parameters:
jobMeta
- The job metadata to trackmaxChildren
- The maximum number of children to keep track of (1000 is the default)
-
JobTracker
public JobTracker(JobMeta jobMeta, JobEntryResult result)
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
public JobTracker(JobMeta jobMeta, int maxChildren, JobEntryResult result)
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 Detail
-
addJobTracker
public void addJobTracker(JobTracker jobTracker)
-
getJobTracker
public JobTracker getJobTracker(int i)
-
nrJobTrackers
public int nrJobTrackers()
-
getJobTrackers
public List<JobTracker> 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
public void setJobTrackers(List<JobTracker> jobTrackers)
- Parameters:
jobTrackers
- The jobTrackers to set.
-
getJobEntryResult
public JobEntryResult getJobEntryResult()
- Returns:
- Returns the result.
-
setJobEntryResult
public void setJobEntryResult(JobEntryResult result)
- Parameters:
result
- The result to set.
-
clear
public void clear()
-
findJobTracker
public JobTracker findJobTracker(JobEntryCopy jobEntryCopy)
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
public JobTracker getParentJobTracker()
- Returns:
- Returns the parentJobTracker.
-
setParentJobTracker
public void setParentJobTracker(JobTracker parentJobTracker)
- Parameters:
parentJobTracker
- The parentJobTracker to set.
-
getTotalNumberOfItems
public int getTotalNumberOfItems()
-
getJobFilename
public String getJobFilename()
- Returns:
- the jobFilename
-
setJobFilename
public void setJobFilename(String jobFilename)
- Parameters:
jobFilename
- the jobFilename to set
-
getJobName
public String getJobName()
- Returns:
- the jobName
-
setJobName
public void setJobName(String jobName)
- 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
-
-