Package org.jppf.node.policy
Class ExecutionPolicy.NotRule
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.ExecutionPolicy.NotRule
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ExecutionPolicy
An execution policy that realizes the negation of a policy specified as operand.
- 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
ConstructorsConstructorDescriptionNotRule(ExecutionPolicy rule) Initialize this binary logical operator with the specified operands. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(PropertiesCollection<String> info) Determines whether this policy accepts the specified node.protected ExecutionPolicy[]checkRules(ExecutionPolicy... rules) Check whether the policy has valid arguments.toString(int n) Get an xml string representation of this policy with the specified starting indentation level.Methods 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
-
NotRule
Initialize this binary logical operator with the specified operands.- Parameters:
rule- the operand.
-
-
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
Description copied from class:ExecutionPolicyGet an xml string representation of this policy with the specified starting indentation level.- Specified by:
toStringin classExecutionPolicy- Parameters:
n- the size of the indent to startwith.- Returns:
- an indented string depending on the value of
toStringIndent.
-
checkRules
Description copied from class:ExecutionPolicyCheck whether the policy has valid arguments.- Overrides:
checkRulesin classExecutionPolicy- Parameters:
rules- the arguments to check.- Returns:
- the non-null arguments, possibly a subset of the provided arguments.
- Throws:
JPPFRuntimeException- if the arguments are not valid.
-