Class RejectAll

All Implemented Interfaces:
Serializable

public class RejectAll extends ExecutionPolicy
An execution policy rule that rejects everything.
Author:
Laurent Cohen
See Also:
  • Field Details

    • XML_TAG

      public static final String XML_TAG
      Name of the corresponding XML element.
  • Constructor Details

    • RejectAll

      public RejectAll()
      Create an accept all policy not wrapping another policy.
    • RejectAll

      public RejectAll(ExecutionPolicy wrappedPolicy)
      Create a "reject all" policy wrapping another policy.
      Parameters:
      wrappedPolicy - the policy to wrap.
  • 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 i)
      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:
      i - the size of the indent to startwith.
      Returns:
      an indented string depending on the value of toStringIndent.