Package org.quartz.jobs
Interface JobDetail
- All Superinterfaces:
Cloneable,Serializable
- All Known Implementing Classes:
JobDetailImpl
Conveys the detail properties of a given
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.
Jobs have a name associated with them, which should uniquely identify them within
a single .
Scheduler
Triggers are the 'mechanism' by which Jobs are scheduled. Many
Triggers can point to the same Job, but a single Trigger
can only point to one Job.
- Author:
- James House
-
Method Summary
Modifier and TypeMethodDescriptionclone()Return the description given to theJobinstance by its creator (if any).Get aJobBuilderthat is configured to produce aJobDetailidentical to this one.Get the instance ofJobthat will be executed.Get theJobDataMapthat is associated with theJob.getName()booleanThe default behavior is to veto any job is currently running concurrent.
-
Method Details
-
getName
String getName() -
getDescription
String getDescription()Return the description given to theJobinstance by its creator (if any).- Returns:
- null if no description was set.
-
getJobClass
Get the instance ofJobthat will be executed. -
getJobDataMap
JobDataMap getJobDataMap()Get theJobDataMapthat is associated with theJob. -
isConcurrencyAllowed
boolean isConcurrencyAllowed()The default behavior is to veto any job is currently running concurrent. However, concurrent jobs can be created by setting the 'Concurrency' to true- Returns:
-
clone
Object clone() -
getJobBuilder
JobBuilder getJobBuilder()Get aJobBuilderthat is configured to produce aJobDetailidentical to this one.
-