Package org.openbravo.scheduling
Class DefaultJob
- java.lang.Object
-
- org.openbravo.scheduling.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 theProcess
andProcessBundle
objects from the JobExecutionContext and executes them.- Author:
- awolski
-
-
Constructor Summary
Constructors Constructor Description DefaultJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.quartz.JobExecutionContext jec)
See the execute method of the Quartz Job class.ProcessBundle
getBundle()
Returns the bundle associated to current executionProcess
getProcessInstance()
Returns the process instanceboolean
isKilled()
Returns whether kill signal has been sent to current executionvoid
setKilled(boolean killed)
Flags current execution as killed
-
-
-
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 interfaceorg.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
-
-