|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.locality.LocalityTriggerBuilder
public class LocalityTriggerBuilder
Builder for LocalityAware
Triggers, which decorate the Trigger and adds the Locality feature to it, by
adding a reference to a NodeSpec
.
Usage:
localTrigger( newTrigger() .forJob("testJob") .withIdentity("trigger1", "group") .startAt(new Date(when))) .where( node() .is(partOfNodeGroup("group1"))) .build();
Constructor Summary | |
---|---|
LocalityTriggerBuilder(Trigger trigger)
|
|
LocalityTriggerBuilder(TriggerBuilder triggerBuilder)
|
Method Summary | |
---|---|
LocalityTrigger |
build()
Method building an immutable LocalityAware Trigger, wrapping the actual Trigger instance If a TriggerBuilder was used at construction time, its build method is invoked |
static LocalityTriggerBuilder |
localTrigger(Trigger trigger)
Creates a delegating LocalityTriggerBuilder based on the Trigger |
static LocalityTriggerBuilder |
localTrigger(TriggerBuilder triggerBuilder)
Creates a delegating LocalityTriggerBuilder based on the TriggerBuilder |
LocalityTriggerBuilder |
where(NodeSpecBuilder specBuilder)
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 LocalityTriggerBuilder(TriggerBuilder triggerBuilder)
public LocalityTriggerBuilder(Trigger trigger)
Method Detail |
---|
public static LocalityTriggerBuilder localTrigger(TriggerBuilder triggerBuilder)
triggerBuilder
- Wrapped builder
LocalityTriggerBuilder
instancepublic static LocalityTriggerBuilder localTrigger(Trigger trigger)
trigger
- Wrapped trigger
LocalityTriggerBuilder
instancepublic LocalityTriggerBuilder where(NodeSpecBuilder specBuilder)
NodeSpecBuilder
that will be build at JobDetail build()
time
specBuilder
- The builder to the node specifications
this
public LocalityTrigger build()
LocalityJobDetail
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |