@DisallowConcurrentExecution public abstract class ERQSJob extends ERQSAbstractJob implements org.quartz.InterruptableJob
Modifier and Type | Field and Description |
---|---|
static String |
ENTERPRISE_OBJECT_KEY |
static String |
NOT_PERSISTENT_OBJECT_KEY |
log
Constructor and Description |
---|
ERQSJob() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
_execute()
_execute() is called by execute().
|
void |
execute(org.quartz.JobExecutionContext jobexecutioncontext)
Implementation of Job interface.
|
ERQSJobDescription |
getJobDescription() |
ERQSJobDescription |
getJobDescription(EOEditingContext ec)
Send back the ERQSJobDescription Object attach to the job.
|
NSTimestamp |
getLastExecutionDate() |
void |
interrupt()
Called by the
when a user interrupts the Job . |
protected boolean |
isJobInterrupted() |
abstract void |
validateForDelete(ERQSJobDescription aJobDescription)
It's a good place to put code that will check if the job description can be deleted or not.
|
abstract void |
validateForSave(ERQSJobDescription aJobDescription)
It's a good place to put code that will check if the job description can be saved or not.
|
abstract void |
willDelete(ERQSJobDescription aJobDescription)
It's a good place to put code that will be executed before job description deletion.
|
abstract void |
willSave(ERQSJobDescription aJobDescription)
It's a good place to put code that will be executed before job description save.
|
editingContext, getJobContext, getScheduler, getSchedulerFPInstance, newEditingContext, setResultMessage
public static final String ENTERPRISE_OBJECT_KEY
public static final String NOT_PERSISTENT_OBJECT_KEY
public final void execute(org.quartz.JobExecutionContext jobexecutioncontext) throws org.quartz.JobExecutionException
To be sure that any exception will be catched, _execute() call in surround by a try/catch block.
execute
in interface org.quartz.Job
execute
in class ERQSAbstractJob
jobexecutioncontext
- passed by the schedulerorg.quartz.JobExecutionException
protected abstract void _execute() throws org.quartz.JobExecutionException
org.quartz.JobExecutionException
public abstract void willDelete(ERQSJobDescription aJobDescription)
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
aJobDescription
- public abstract void willSave(ERQSJobDescription aJobDescription)
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
aJobDescription
- public abstract void validateForSave(ERQSJobDescription aJobDescription)
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
aJobDescription
- public abstract void validateForDelete(ERQSJobDescription aJobDescription)
Nothing is done automatically, you have to call this method manually if you want to give a chance to the job to use its own logic.
aJobDescription
- public ERQSJobDescription getJobDescription(EOEditingContext ec)
ec
- editingContext (can be null if the NOScheduler object has been already defaulted)IllegalStateException
- if there is no EOGlobalID in the JobDataMap or if ec is null and ERQSJobDescription object isn't already defaultedpublic ERQSJobDescription getJobDescription()
public NSTimestamp getLastExecutionDate()
public void interrupt() throws org.quartz.UnableToInterruptJobException
Scheduler
when a user interrupts the Job
.
return void (nothing) if job interrupt is successful.interrupt
in interface org.quartz.InterruptableJob
org.quartz.JobExecutionException
- if there is an exception while interrupting the job.org.quartz.UnableToInterruptJobException
protected boolean isJobInterrupted()
Copyright © 2002 – 2024 Project Wonder.