Class JobTracker


  • public class JobTracker
    extends Object
    Responsible for tracking the execution of a job as a hierarchy.
    Since:
    30-mar-2006
    Author:
    Matt
    • 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 (maxChildren 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 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