org.jppf.node.policy
Class BetweenEE
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.BetweenEE
- All Implemented Interfaces:
- Serializable
public class BetweenEE
- extends ExecutionPolicy
An execution policy rule that encapsulates a test of type a < property_value < b.
The test applies to numeric values only.
- Author:
- Laurent Cohen
- See Also:
- Serialized Form
|
Constructor Summary |
BetweenEE(String propertyName,
double a,
double b)
Define a comparison of type value between a and b with a excluded and b excluded. |
BetweenEE
public BetweenEE(String propertyName,
double a,
double b)
- Define a comparison of type value between a and b with a excluded and b excluded.
- Parameters:
propertyName - the name of the property to compare.a - the lower bound.b - the upper bound.
accepts
public boolean accepts(JPPFSystemInformation info)
- Determines whether this policy accepts the specified node.
- Specified by:
accepts in class ExecutionPolicy
- Parameters:
info - system information for the node on which the tasks will run if accepted.
- Returns:
- true if the node is accepted, false otherwise.
- See Also:
ExecutionPolicy.accepts(org.jppf.management.JPPFSystemInformation)
toString
public String toString()
- Print this object to a string.
- Overrides:
toString in class Object
- Returns:
- an XML string representation of this object
- See Also:
Object.toString()
Copyright © 2005-2010 JPPF Team.