Class ExecutionPolicySelector

java.lang.Object
org.jppf.management.ExecutionPolicySelector
All Implemented Interfaces:
Serializable, DriverSelector, NodeSelector

public class ExecutionPolicySelector extends Object implements NodeSelector, DriverSelector
Selects nodes based on an ExecutionPolicy.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • ExecutionPolicySelector

      public ExecutionPolicySelector(ExecutionPolicy policy)
      Initialize this selector with the specified execution policy.
      Parameters:
      policy - the execution policy to use to select the nodes.
  • Method Details

    • getPolicy

      public ExecutionPolicy getPolicy()
      Get the execution policy to use to select the nodes.
      Returns:
      an ExecutionPolicy.
    • accepts

      public boolean accepts(JPPFManagementInfo nodeInfo)
      Description copied from interface: NodeSelector
      Determine whether a node is accepted by this selector.
      Specified by:
      accepts in interface NodeSelector
      Parameters:
      nodeInfo - information on the node.
      Returns:
      true if the node is accepted, false otherwise.