org.pentaho.di.core.gui
Class JobTracker

java.lang.Object
  extended by 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
JobTracker(JobMeta jobMeta)
           
JobTracker(JobMeta jobMeta, int maxChildren)
           
JobTracker(JobMeta jobMeta, int maxChildren, JobEntryResult result)
          Creates a jobtracker with a single result
JobTracker(JobMeta jobMeta, JobEntryResult result)
          Creates a jobtracker with a single result (max 1000 children are kept)
 
Method Summary
 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()
           
 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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 track
maxChildren - 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 (max 1000 children are kept)

Parameters:
jobMeta - the job metadata to keep track of
result - 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 of
maxChildren - The maximum number of children to keep track of
result - 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:
Returns the jobTrackers.

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