java.lang.Objectorg.quartz.JobExecutionContext
All Implemented Interfaces:
Serializable
A context bundle containing handles to various environment information, that
is given to a org.quartz.JobDetail
instance as it is
executed, and to a Trigger
instance after the
execution completes.
The JobDataMap
found on this object (via the
getMergedJobDataMap()
method) serves as a convenience -
it is a merge of the JobDataMap
found on the
JobDetail
and the one found on the Trigger
, with
the value in the latter overriding any same-named values in the former.
It is thus considered a 'best practice' that the execute code of a Job
retrieve data from the JobDataMap found on this object NOTE: Do not
expect value 'set' into this JobDataMap to somehow be set back onto a
StatefulJob
's own JobDataMap.
JobExecutionContext
s are also returned from the
Scheduler.getCurrentlyExecutingJobs()
method. These are the same instances as those passed into the jobs that are
currently executing within the scheduler. The exception to this is when your
application is using Quartz remotely (i.e. via RMI) - in which case you get
a clone of the JobExecutionContext
s, and their references to
the Scheduler
and Job
instances have been lost (a
clone of the JobDetail
is still available - just not a handle
to the job instance that is running).
James
- HouseConstructor: |
---|
Create a JobExcecutionContext with the given context data. |
Method from org.quartz.JobExecutionContext Summary: |
---|
get, getCalendar, getFireTime, getJobDetail, getJobInstance, getJobRunTime, getMergedJobDataMap, getNextFireTime, getPreviousFireTime, getRefireCount, getResult, getScheduledFireTime, getScheduler, getTrigger, incrementRefireCount, isRecovering, put, setJobRunTime, setResult, toString |
Methods from java.lang.Object: |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.quartz.JobExecutionContext Detail: |
---|
|
Get a handle to the |
|
Get the |
Get the instance of the Note: The Job instance is not available through remote scheduler interfaces. |
JobListener s and TriggerListener s. |
Get the convenience
The NOTE: Do not
expect value 'set' into this JobDataMap to somehow be set back onto a
Attempts to change the contents of this map typically result in an
|
|
|
|
Job set before its
execution completed (the type of object set as the result is entirely up
to the particular job).
The result itself is meaningless to Quartz, but may be informative
to |
|
Get a handle to the |
Get a handle to the |
|
If the |
NOTE: this data is volatile - it is lost after the job execution completes, and all TriggerListeners and JobListeners have been notified. |
|
Job 's execution (the type of
object set as the result is entirely up to the particular job).
The result itself is meaningless to Quartz, but may be informative
to |
|