org.quartz.locality.constraint
Class NodeGroupConstraint
java.lang.Object
org.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
NodeGroupConstraint
public NodeGroupConstraint(String targetNodeGroup)
- Constructor
- Parameters:
targetNodeGroup
- the targeted node group for this constraint
NodeGroupConstraint
public NodeGroupConstraint(NodeGroupConstraint.Operator operator,
String targetNodeGroup)
partOfNodeGroup
public static NodeGroupConstraint partOfNodeGroup(String targetNodeGroup)
- Creates a
NodeGroupConstraint
that specifies the node group on which the Job has to be executed
- Parameters:
targetNodeGroup
- The name of the target group, as specified in quartzLocality.properties
- Returns:
- The
NodeGroupConstraint
instance
getTargetNodeGroup
public String getTargetNodeGroup()
- Getter to the target node group
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
matches
public boolean matches(String actual)
-
Copyright 2001-2011,
Terracotta, Inc.