Class IsPeerDriver

java.lang.Object
org.jppf.node.policy.ExecutionPolicy
org.jppf.node.policy.IsPeerDriver
All Implemented Interfaces:
Serializable

public class IsPeerDriver extends ExecutionPolicy
An execution policy predicate that determines whether a node connection is actually a peer driver.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • IsPeerDriver

      public IsPeerDriver()
  • 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.
    • toXML

      public String toXML()
      Description copied from class: ExecutionPolicy
      Convert this execution policy to XML.
      Overrides:
      toXML in class ExecutionPolicy
      Returns:
      an XML representation of this policy, fully compliant with the JPPF execution policy XML schema at http://www.jppf.org/schemas/ExecutionPolicy.xsd.