Class DefaultJob

  • All Implemented Interfaces:
    org.quartz.Job

    public class DefaultJob
    extends Object
    implements org.quartz.Job
    Openbravo implementation of the Quartz Job interface to enable Openbravo processes to be scheduled through the Quartz Scheduler. DefaultJob simply removes the Process and ProcessBundle objects from the JobExecutionContext and executes them.
    Author:
    awolski
    • Constructor Detail

      • DefaultJob

        public DefaultJob()
    • Method Detail

      • execute

        public void execute​(org.quartz.JobExecutionContext jec)
                     throws org.quartz.JobExecutionException
        See the execute method of the Quartz Job class.
        Specified by:
        execute in interface org.quartz.Job
        Throws:
        org.quartz.JobExecutionException
      • getProcessInstance

        public Process getProcessInstance()
        Returns the process instance
        Returns:
        process instance
      • getBundle

        public ProcessBundle getBundle()
        Returns the bundle associated to current execution
      • isKilled

        public boolean isKilled()
        Returns whether kill signal has been sent to current execution
      • setKilled

        public void setKilled​(boolean killed)
        Flags current execution as killed