public interface JobDetail extends Serializable, Cloneable
Job
instance. JobDetails are
to be created/defined with JobBuilder
.
Quartz does not store an actual instance of a Job
class, but
instead allows you to define an instance of one, through the use of a JobDetail
.
Job
s have a name and group associated with them, which
should uniquely identify them within a single
.
Scheduler
Trigger
s are the 'mechanism' by which Job
s
are scheduled. Many Trigger
s can point to the same Job
,
but a single Trigger
can only point to one Job
.
JobBuilder
,
Job
,
JobDataMap
,
Trigger
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
String |
getDescription()
Return the description given to the
Job instance by its
creator (if any). |
JobBuilder |
getJobBuilder()
Get a
JobBuilder that is configured to produce a
JobDetail identical to this one. |
Class<? extends Job> |
getJobClass()
Get the instance of
Job that will be executed. |
JobDataMap |
getJobDataMap()
Get the
JobDataMap that is associated with the Job . |
JobKey |
getKey() |
boolean |
isConcurrentExectionDisallowed() |
boolean |
isDurable()
Whether or not the
Job should remain stored after it is
orphaned (no point to it). |
boolean |
isPersistJobDataAfterExecution() |
boolean |
requestsRecovery()
Instructs the
Scheduler whether or not the Job
should be re-executed if a 'recovery' or 'fail-over' situation is
encountered. |
JobKey getKey()
String getDescription()
Return the description given to the Job
instance by its
creator (if any).
JobDataMap getJobDataMap()
Get the JobDataMap
that is associated with the Job
.
boolean isDurable()
Whether or not the Job
should remain stored after it is
orphaned (no
point to it).
Trigger
s
If not explicitly set, the default value is false
.
true
if the Job should remain persisted after
being orphaned.boolean isPersistJobDataAfterExecution()
PersistJobDataAfterExecution
annotation.PersistJobDataAfterExecution
boolean isConcurrentExectionDisallowed()
DisallowConcurrentExecution
annotation.DisallowConcurrentExecution
boolean requestsRecovery()
Instructs the Scheduler
whether or not the Job
should be re-executed if a 'recovery' or 'fail-over' situation is
encountered.
If not explicitly set, the default value is false
.
JobExecutionContext.isRecovering()
Object clone()
JobBuilder getJobBuilder()
JobBuilder
that is configured to produce a
JobDetail
identical to this one.Copyright 2001-2019, Terracotta, Inc.