|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.quartz.locality Class DelegatingLocalityJobDetail
java.lang.Objectorg.quartz.locality.DelegatingLocalityJobDetail
- All Implemented Interfaces:
- Serializable, Cloneable, JobDetail, LocalityAware, LocalityJobDetail
public class DelegatingLocalityJobDetail
- extends Object
- implements Cloneable, Serializable, LocalityJobDetail
Wrapping a JobDetail instance while adding the LocalityAware contract
All JobDetail method calls will be delegated to the wrapped JobDetail instance
- Author:
- Alex Snaps
- See Also:
- Serialized Form
| 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 Triggers 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 |
|---|
DelegatingLocalityJobDetail
public DelegatingLocalityJobDetail(JobDetail jobDetail, NodeSpec nodeSpec)
- Constructs a
LocalityAwareJobDetail, wrapping an existing JobDetail instance, with additional NodeSpec
| Method Detail |
|---|
getKey
public JobKey getKey()
getDescription
public String getDescription()
Return the description given to the
Jobinstance by its creator (if any).- Specified by:
getDescriptionin interfaceJobDetail
- Returns:
- null if no description was set.
getJobClass
public Class<? extends Job> getJobClass()
Get the instance of
Jobthat will be executed.- Specified by:
getJobClassin interfaceJobDetail
getJobDataMap
public JobDataMap getJobDataMap()
Get the
JobDataMapthat is associated with theJob.- Specified by:
getJobDataMapin interfaceJobDetail
isDurable
public boolean isDurable()
Whether or not the
Jobshould remain stored after it is orphaned (noTriggers point to it).If not explicitly set, the default value is
false.- Returns:
trueif the Job should remain persisted after being orphaned.
isPersistJobDataAfterExecution
public boolean isPersistJobDataAfterExecution()
-
- Specified by:
isPersistJobDataAfterExecutionin interfaceJobDetail
- Returns:
- whether the associated Job class carries the
PersistJobDataAfterExecutionannotation. - See Also:
PersistJobDataAfterExecution
isConcurrentExectionDisallowed
public boolean isConcurrentExectionDisallowed()
-
- Specified by:
isConcurrentExectionDisallowedin interfaceJobDetail
- Returns:
- whether the associated Job class carries the
DisallowConcurrentExecutionannotation. - See Also:
DisallowConcurrentExecution
requestsRecovery
public boolean requestsRecovery()
Instructs the
Schedulerwhether or not theJobshould be re-executed if a 'recovery' or 'fail-over' situation is encountered.If not explicitly set, the default value is
false.- Specified by:
requestsRecoveryin interfaceJobDetail
- See Also:
JobExecutionContext.isRecovering()
getJobBuilder
public JobBuilder getJobBuilder()
- Get a
JobBuilderthat is configured to produce aJobDetailidentical to this one. - Specified by:
getJobBuilderin interfaceJobDetail
getNodeSpec
public NodeSpec getNodeSpec()
- Accessor to the
NodeSpecinstance to evaluate constraints - Specified by:
getNodeSpecin interfaceLocalityAware
- Returns:
clone
public Object clone()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2001-2011, Terracotta, Inc.
org.quartz.locality.DelegatingLocalityJobDetail