Class ExecutionPolicy.NotRule

java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.ExecutionPolicy.NotRule
All Implemented Interfaces:
Serializable
Enclosing class:
ExecutionPolicy

public static class ExecutionPolicy.NotRule extends ExecutionPolicy
An execution policy that realizes the negation of a policy specified as operand.
See Also:
  • Constructor Details

    • NotRule

      public NotRule(ExecutionPolicy rule)
      Initialize this binary logical operator with the specified operands.
      Parameters:
      rule - the operand.
  • Method Details

    • accepts

      public boolean accepts(PropertiesCollection<String> info)
      Description copied from class: ExecutionPolicy
      Determines whether this policy accepts the specified node. This method must be overriden in subclasses.
      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.
    • toString

      public String toString(int n)
      Description copied from class: ExecutionPolicy
      Get an xml string representation of this policy with the specified starting indentation level.
      Specified by:
      toString in class ExecutionPolicy
      Parameters:
      n - the size of the indent to startwith.
      Returns:
      an indented string depending on the value of toStringIndent.
    • checkRules

      protected ExecutionPolicy[] checkRules(ExecutionPolicy... rules) throws JPPFRuntimeException
      Description copied from class: ExecutionPolicy
      Check whether the policy has valid arguments.
      Overrides:
      checkRules in class ExecutionPolicy
      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.