|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.locality.NodeSpecBuilder
public class NodeSpecBuilder
Builder for NodeSpec, specifically required for the DSL builder-style API:
localJob(
newJob(CheckForNode1AndWaitJob.class)
.withIdentity("testJob")
.storeDurably(true)
.build())
.where(
node()
.is(partOfNodeGroup("group1")))
.build();
* @author Alex Snaps
| Constructor Summary | |
|---|---|
NodeSpecBuilder()
|
|
| Method Summary | |
|---|---|
NodeSpec |
build()
Method that creates the NodeSpec represented by this builder |
NodeSpecBuilder |
has(Constraint constraint)
DSL method to add a constraint |
NodeSpecBuilder |
is(Constraint constraint)
DSL method to add a constraint |
static NodeSpecBuilder |
node()
Factory method |
NodeSpecBuilder |
set(Constraint... constraintsToAdd)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeSpecBuilder()
| Method Detail |
|---|
public NodeSpecBuilder set(Constraint... constraintsToAdd)
public NodeSpec build()
NodeSpec instancepublic static NodeSpecBuilder node()
NodeSpecBuilder instancepublic NodeSpecBuilder is(Constraint constraint)
constraint - The constraint to be added to the list
thispublic NodeSpecBuilder has(Constraint constraint)
constraint - The constraint to be added to the list
this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||