NodeGroupConstraint (Quartz Parent POM 2.0.1 API)

Quartz Java



org.quartz.locality.constraint Class NodeGroupConstraint

java.lang.Object
  extended by 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

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 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.