Class ExecutionPolicy.AndRule

All Implemented Interfaces:
Serializable
Enclosing class:
ExecutionPolicy

public static class ExecutionPolicy.AndRule extends LogicalRule
An execution policy that realizes a logical "AND" combination of multiple policies specified as operands.
See Also:
  • Constructor Details

    • AndRule

      public AndRule(ExecutionPolicy... rules)
      Initialize this AND operator with the specified operands.
      Parameters:
      rules - the rules to combine.
  • Method Details

    • accepts

      public boolean accepts(PropertiesCollection<String> info)
      Determine if a node is acceptable for this policy.
      Specified by:
      accepts in class ExecutionPolicy
      Parameters:
      info - system information for the node on which the tasks will run if accepted.
      Returns:
      true if and only if the 2 operands' accepts() method return true or an empty or null operand list was specified.
    • toString

      public String toString(int n)
      Description copied from class: LogicalRule
      Print this object to a string.
      Overrides:
      toString in class LogicalRule
      Parameters:
      n - the size of the indent to startwith.
      Returns:
      an XML string representation of this object