|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
instanceMethod Detail |
---|
public JobKey getKey()
getKey
in interface JobDetail
public String getDescription()
Return the description given to the Job
instance by its
creator (if any).
getDescription
in interface JobDetail
public Class<? extends Job> getJobClass()
Get the instance of Job
that will be executed.
getJobClass
in interface JobDetail
public JobDataMap getJobDataMap()
Get the JobDataMap
that is associated with the Job
.
getJobDataMap
in interface JobDetail
public 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
.
isDurable
in interface JobDetail
true
if the Job should remain persisted after
being orphaned.public boolean isPersistJobDataAfterExecution()
isPersistJobDataAfterExecution
in interface JobDetail
PersistJobDataAfterExecution
annotation.PersistJobDataAfterExecution
public boolean isConcurrentExectionDisallowed()
isConcurrentExectionDisallowed
in interface JobDetail
DisallowConcurrentExecution
annotation.DisallowConcurrentExecution
public 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 JobDetail
JobExecutionContext.isRecovering()
public JobBuilder getJobBuilder()
JobBuilder
that is configured to produce a
JobDetail
identical to this one.
getJobBuilder
in interface JobDetail
public NodeSpec getNodeSpec()
NodeSpec
instance to evaluate constraints
getNodeSpec
in interface LocalityAware
public Object clone()
clone
in interface JobDetail
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |