Package org.jppf.job
Class JobNameSelector
java.lang.Object
org.jppf.job.JobNameSelector
- All Implemented Interfaces:
Serializable,JobSelector
A job selector which accepts all jobs whose names are in the set specified in one of its constructors.
- Since:
- 6.2
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from interface org.jppf.job.JobSelector
ALL_JOBS -
Constructor Summary
ConstructorsConstructorDescriptionJobNameSelector(String... names) Initiialize this selector with the specified array of accepted job uuids.JobNameSelector(Collection<String> names) Initiialize this selector with the specified collection of accepted job uuids. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the specified job is accepted by this selector.getNames()Get the set of job uuids accepted by this selector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.job.JobSelector
and, negate, or, xor
-
Constructor Details
-
JobNameSelector
Initiialize this selector with the specified collection of accepted job uuids.- Parameters:
names- a collection of job names.
-
JobNameSelector
Initiialize this selector with the specified array of accepted job uuids.- Parameters:
names- an array of job names.
-
-
Method Details
-
accepts
Description copied from interface:JobSelectorDetermine whether the specified job is accepted by this selector.- Specified by:
acceptsin interfaceJobSelector- Parameters:
job- the job to check.- Returns:
trueif the job is acepted,falseotherwise.
-
getNames
Get the set of job uuids accepted by this selector.- Returns:
- a set of uuids, possibly empty.
-