public class ERQSAbstractJob extends Object implements org.quartz.Job
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
ERQSAbstractJob() |
Modifier and Type | Method and Description |
---|---|
protected 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 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.
|
public void execute(org.quartz.JobExecutionContext jobexecutioncontext) throws org.quartz.JobExecutionException
execute
in interface org.quartz.Job
org.quartz.JobExecutionException
protected EOEditingContext editingContext()
newEditingContext()
protected 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 – 2024 Project Wonder.