|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.locality.DelegatingLocalityJobDetail
public class DelegatingLocalityJobDetail
Wrapping a JobDetail instance while adding the LocalityAware contract
All JobDetail method calls will be delegated to the wrapped JobDetail instance
| Constructor Summary | |
|---|---|
DelegatingLocalityJobDetail(JobDetail jobDetail,
NodeSpec nodeSpec)
Constructs a LocalityAware JobDetail, wrapping an existing JobDetail instance, with additional NodeSpec |
|
| Method Summary | |
|---|---|
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()
|
NodeSpec |
getNodeSpec()
Accessor to the NodeSpec instance to evaluate constraints |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingLocalityJobDetail(JobDetail jobDetail,
NodeSpec nodeSpec)
LocalityAware JobDetail, wrapping an existing JobDetail instance, with additional NodeSpec
jobDetail - The JobDetail instance to wrapnodeSpec - The NodeSpec instance| Method Detail |
|---|
public JobKey getKey()
getKey in interface JobDetailpublic String getDescription()
Return the description given to the Job instance by its
creator (if any).
getDescription in interface JobDetailpublic Class<? extends Job> getJobClass()
Get the instance of Job that will be executed.
getJobClass in interface JobDetailpublic JobDataMap getJobDataMap()
Get the JobDataMap that is associated with the Job.
getJobDataMap in interface JobDetailpublic boolean isDurable()
Whether or not the Job should remain stored after it is
orphaned (no point to it).
Triggers
If not explicitly set, the default value is false.
isDurable in interface JobDetailtrue if the Job should remain persisted after
being orphaned.public boolean isPersistJobDataAfterExecution()
isPersistJobDataAfterExecution in interface JobDetailPersistJobDataAfterExecution annotation.PersistJobDataAfterExecutionpublic boolean isConcurrentExectionDisallowed()
isConcurrentExectionDisallowed in interface JobDetailDisallowConcurrentExecution annotation.DisallowConcurrentExecutionpublic 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.
requestsRecovery in interface JobDetailJobExecutionContext.isRecovering()public JobBuilder getJobBuilder()
JobBuilder that is configured to produce a
JobDetail identical to this one.
getJobBuilder in interface JobDetailpublic NodeSpec getNodeSpec()
NodeSpec instance to evaluate constraints
getNodeSpec in interface LocalityAwarepublic Object clone()
clone in interface JobDetailclone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||