public class ERQSAbstractJob extends Object implements org.quartz.Job
Constructor and Description |
---|
ERQSAbstractJob() |
Modifier and Type | Method and Description |
---|---|
protected com.webobjects.eocontrol.EOEditingContext |
editingContext()
Return the editing context associated to the job.
|
void |
execute(org.quartz.JobExecutionContext jobexecutioncontext) |
org.quartz.JobExecutionContext |
getJobContext()
Returns the jobContext associated with the job.
|
protected org.quartz.Scheduler |
getScheduler() |
protected ERQSSchedulerServiceFrameworkPrincipal |
getSchedulerFPInstance() |
protected com.webobjects.eocontrol.EOEditingContext |
newEditingContext()
Called by
editingContext() . |
void |
setResultMessage(String message)
Helper method to set a log message displayed through the web UI when the job is running.
|
protected static final Logger log
public void execute(org.quartz.JobExecutionContext jobexecutioncontext) throws org.quartz.JobExecutionException
execute
in interface org.quartz.Job
org.quartz.JobExecutionException
protected com.webobjects.eocontrol.EOEditingContext editingContext()
newEditingContext()
protected com.webobjects.eocontrol.EOEditingContext newEditingContext()
editingContext()
. Should not be called directly except if you need several
editingContext.protected org.quartz.Scheduler getScheduler()
protected ERQSSchedulerServiceFrameworkPrincipal getSchedulerFPInstance()
public org.quartz.JobExecutionContext getJobContext()
IllegalStateException
- if the job context is nullpublic void setResultMessage(String message)
It's used also when the job ends up to display and send a log message by email.
message
- Copyright © 2002 – 2020 Project Wonder.