Class UuidSelector

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

public class UuidSelector extends Object implements NodeSelector, DriverSelector
Selects nodes based on their uuids.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • UuidSelector

      public UuidSelector(Collection<String> uuids)
      Initialize this selector with the specified list of node UUIDs.
      Parameters:
      uuids - the uuids of the nodes to select.
    • UuidSelector

      public UuidSelector(String... uuids)
      Initialize this selector with the specified array of node UUIDs.
      Parameters:
      uuids - the uuids of the nodes to select.
  • Method Details

    • getUuids

      public Collection<String> getUuids()
      Get the list of uuids of the nodes to select. This list is immutable.
      Returns:
      a collection of uuids as strings.
    • 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.