Package org.jppf.job

Class JobUuidSelector

java.lang.Object
org.jppf.job.JobUuidSelector
All Implemented Interfaces:
Serializable, JobSelector

public class JobUuidSelector extends Object implements JobSelector
A job selector which accepts all jobs whose uuids are in the set specified in one of its constructors.
Since:
5.1
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • JobUuidSelector

      public JobUuidSelector(Collection<String> uuids)
      Initiialize this selector with the specified collection of accepted job uuids.
      Parameters:
      uuids - a collection of string uuids.
    • JobUuidSelector

      public JobUuidSelector(String... uuids)
      Initiialize this selector with the specified array of accepted job uuids.
      Parameters:
      uuids - an array of string uuids.
  • Method Details

    • accepts

      public boolean accepts(JPPFDistributedJob job)
      Description copied from interface: JobSelector
      Determine whether the specified job is accepted by this selector.
      Specified by:
      accepts in interface JobSelector
      Parameters:
      job - the job to check.
      Returns:
      true if the job is acepted, false otherwise.
    • getUuids

      public Set<String> getUuids()
      Get the set of job uuids accepted by this selector.
      Returns:
      a set of uuids, possibly empty.