NodeGroupConstraint (Quartz Parent POM 2.0.1 API)
From Quartz Java
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
org.quartz.locality.constraint Class NodeGroupConstraint
java.lang.Objectorg.quartz.locality.constraint.NodeGroupConstraint
- All Implemented Interfaces:
- Serializable, Constraint<NodeGroupConstraint.Operator,String>
public final class NodeGroupConstraint
- extends Object
- implements Constraint<NodeGroupConstraint.Operator,String>
Constraint to have a Job execute on a specific node group.
Node groups are defined in quartzLocality.properties
- Author:
- Alex Snaps
- See Also:
NodeGroupEvaluator, Serialized Form
| Nested Class Summary | |
|---|---|
static class |
NodeGroupConstraint.Operator
|
| Constructor Summary | |
|---|---|
NodeGroupConstraint(NodeGroupConstraint.Operator operator,
String targetNodeGroup)
|
|
NodeGroupConstraint(String targetNodeGroup)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getTargetNodeGroup()
Getter to the target node group |
int |
hashCode()
|
boolean |
matches(String actual)
|
static NodeGroupConstraint |
partOfNodeGroup(String targetNodeGroup)
Creates a NodeGroupConstraint that specifies the node group on which the Job has to be executed |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
NodeGroupConstraint
public NodeGroupConstraint(String targetNodeGroup)
- Constructor
- Parameters:
targetNodeGroup- the targeted node group for this constraint
NodeGroupConstraint
public NodeGroupConstraint(NodeGroupConstraint.Operator operator, String targetNodeGroup)
| Method Detail |
|---|
partOfNodeGroup
public static NodeGroupConstraint partOfNodeGroup(String targetNodeGroup)
- Creates a
NodeGroupConstraintthat specifies the node group on which the Job has to be executed - Parameters:
targetNodeGroup- The name of the target group, as specified inquartzLocality.properties- Returns:
- The
NodeGroupConstraintinstance
getTargetNodeGroup
public String getTargetNodeGroup()
- Getter to the target node group
- Returns:
hashCode
public int hashCode()
equals
public boolean equals(Object o)
matches
public boolean matches(String actual)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2001-2011, Terracotta, Inc.