Package org.jppf.node.policy
Class ExecutionPolicy.XorRule
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.LogicalRule
org.jppf.node.policy.ExecutionPolicy.XorRule
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExecutionPolicy
An execution policy that realizes a logical "XOR" combination of multiple policies specified as operands.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jppf.node.policy.ExecutionPolicy
ExecutionPolicy.AndRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule -
Field Summary
Fields inherited from class org.jppf.node.policy.ExecutionPolicy
children -
Constructor Summary
ConstructorsConstructorDescriptionXorRule(ExecutionPolicy... rules) Initialize this OR operator with the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(PropertiesCollection<String> info) Determines whether this policy accepts the specified node.toString(int n) Print this object to a string.Methods inherited from class org.jppf.node.policy.LogicalRule
checkRulesMethods inherited from class org.jppf.node.policy.ExecutionPolicy
and, and, andNot, andNot, evaluate, getChildren, getContext, getProperty, indent, negate, not, Not, or, or, orNot, orNot, setContext, setContext, tagEnd, tagStart, toString, toXML, xmlElement, xmlElement, xor, xor
-
Constructor Details
-
XorRule
Initialize this OR operator with the specified operands.- Parameters:
rules- the rules to combine.
-
-
Method Details
-
accepts
Description copied from class:ExecutionPolicyDetermines whether this policy accepts the specified node. This method must be overriden in subclasses.- Specified by:
acceptsin classExecutionPolicy- Parameters:
info- system information for the node on which the tasks will run if accepted.- Returns:
- true if the node is accepted, false otherwise.
-
toString
Print this object to a string.- Overrides:
toStringin classLogicalRule- Parameters:
n- the size of the indent to startwith.- Returns:
- an XML string representation of this object
-