Class AbstractMetaJobRunner

    • Field Detail

      • m_JobRunner

        protected JobRunner m_JobRunner
        the base jobrunner to use.
      • m_Jobs

        protected List<Job> m_Jobs
        the list of jobs.
      • m_ActualJobRunner

        protected JobRunner m_ActualJobRunner
        the actual jobrunner.
    • Constructor Detail

      • AbstractMetaJobRunner

        public AbstractMetaJobRunner()
    • Method Detail

      • getDefaultJobRunner

        protected JobRunner getDefaultJobRunner()
        Returns the default jobrunner.
        Returns:
        the jobrunner
      • setJobRunner

        public void setJobRunner​(JobRunner value)
        Sets the base jobrunner.
        Parameters:
        value - the jobrunner
      • getJobRunner

        public JobRunner getJobRunner()
        Returns the base jobrunner.
        Returns:
        the jobrunner
      • jobRunnerTipText

        public String jobRunnerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Returns:
        null if no info available, otherwise short string
      • clear

        public void clear()
        Clears all jobs.
      • add

        public void add​(Job job)
        Adds the job to the execution queue.
        Parameters:
        job - the job to add
      • add

        public void add​(JobList jobs)
        Adds the jobs to the execution queue.
        Parameters:
        jobs - the jobs to add
      • getJobs

        public List<T> getJobs()
        Returns the list of queued jobs.
        Returns:
        the jobs
      • addJobCompleteListener

        public void addJobCompleteListener​(JobCompleteListener l)
        Adds the listener.
        Parameters:
        l - the listener to add
      • removeJobCompleteListener

        public void removeJobCompleteListener​(JobCompleteListener l)
        Removes the listener.
        Parameters:
        l - the listener to remove
      • newActualJobRunner

        protected JobRunner newActualJobRunner()
        Returns an instance of the actual job runner to use.
        Returns:
        the job runner to use
      • preStart

        protected String preStart()
        Before actual start up.
        Overrides:
        preStart in class AbstractJobRunner
        Returns:
        null if successful, otherwise error message