|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.locality.LocalityJobBuilder
public class LocalityJobBuilder
Builder for LocalityAware
JobDetail
instances.
localJob( newJob(CheckForNode1AndWaitJob.class) .withIdentity("testJob") .storeDurably(true) .build()) .where( node() .is(partOfNodeGroup("group1"))) .build();
Constructor Summary | |
---|---|
LocalityJobBuilder(JobBuilder jobBuilder)
|
Method Summary | |
---|---|
LocalityJobDetail |
build()
Method building an immutable LocalityAware JobDetail, wrapping the actual JobDetail instance If a JobBuilder was used at construction time, its build method is invoked |
static LocalityJobBuilder |
localJob(JobBuilder jobBuilder)
Factory method to create builder to a wrapping LocalityAware JobDetailBuilder |
static LocalityJobBuilder |
localJob(JobDetail jobDetail)
Factory method to create builder to a wrapping LocalityAware JobDetail |
LocalityJobBuilder |
where(NodeSpecBuilder spec)
Setter to the NodeSpecBuilder that will be build at JobDetail build() time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalityJobBuilder(JobBuilder jobBuilder)
Method Detail |
---|
public static LocalityJobBuilder localJob(JobDetail jobDetail)
jobDetail
- The JobDetail to wrap
LocalityJobBuilder
instancepublic static LocalityJobBuilder localJob(JobBuilder jobBuilder)
jobBuilder
- The JobBuilder
to wrap
LocalityJobBuilder
instancepublic LocalityJobBuilder where(NodeSpecBuilder spec)
NodeSpecBuilder
that will be build at JobDetail build()
time
spec
- The builder to the node specifications
this
public LocalityJobDetail build()
LocalityJobDetail
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |