Class JobRunnerInstance

    • Field Detail

      • m_JobRunnerSetup

        protected transient JobRunnerSetup m_JobRunnerSetup
        the JobRunnerSetup instance to use.
      • m_JobRunner

        protected transient JobRunner m_JobRunner
        the actual JobRunner instance in use.
    • Constructor Detail

      • JobRunnerInstance

        public JobRunnerInstance()
    • Method Detail

      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message
      • getJobRunner

        public JobRunner getJobRunner()
        Returns the job runner in use.
        Returns:
        the JobRunner, null if not available
      • executeJob

        public String executeJob​(Job job)
                          throws Exception
        For queuing a job and waiting for the execution to finish.
        Parameters:
        job - the job to execute
        Returns:
        null if successful, otherwise error message
        Throws:
        Exception - if no JobRunnerInstance or JobRunner available
      • wrapUp

        public void wrapUp()
        Cleans up after the execution has finished. Graphical output is left untouched.
        Specified by:
        wrapUp in interface Actor
        Overrides:
        wrapUp in class AbstractActor
      • locate

        public static JobRunnerInstance locate​(Actor source)
        Tries to locate a JobRunnerInstance actor. Logs no warning in case it fails to locate one.
        Parameters:
        source - the starting point for the search
        Returns:
        the instance or null if not found
      • locate

        public static JobRunnerInstance locate​(Actor source,
                                               boolean warn)
        Tries to locate a JobRunnerInstance actor.
        Parameters:
        source - the starting point for the search
        warn - whether to log a warning
        Returns:
        the instance or null if not found