Package org.jppf.node.policy
Class RejectAll
java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.RejectAll
- All Implemented Interfaces:
Serializable
An execution policy rule that rejects everything.
- Author:
- Laurent Cohen
- 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
FieldsFields inherited from class org.jppf.node.policy.ExecutionPolicy
children -
Constructor Summary
ConstructorsConstructorDescriptionCreate an accept all policy not wrapping another policy.RejectAll(ExecutionPolicy wrappedPolicy) Create a "reject all" policy wrapping another policy. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccepts(PropertiesCollection<String> info) Determines whether this policy accepts the specified node.toString(int i) 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, checkRules, evaluate, getChildren, getContext, getProperty, indent, negate, not, Not, or, or, orNot, orNot, setContext, setContext, tagEnd, tagStart, toString, toXML, xmlElement, xmlElement, xor, xor
-
Field Details
-
XML_TAG
Name of the corresponding XML element.
-
-
Constructor Details
-
RejectAll
public RejectAll()Create an accept all policy not wrapping another policy. -
RejectAll
Create a "reject all" policy wrapping another policy.- Parameters:
wrappedPolicy- the policy to wrap.
-
-
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:
i- the size of the indent to startwith.- Returns:
- an indented string depending on the value of
toStringIndent.
-