Package org.jppf.job
Class ContainsJobSelector
java.lang.Object
org.jppf.job.ContainsJobSelector
- All Implemented Interfaces:
Serializable,JobSelector
Performs an "contains" comparison between a job metadata value or a job name and an other comparable value.
- Since:
- 6.2
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from interface org.jppf.job.JobSelector
ALL_JOBS -
Constructor Summary
ConstructorsConstructorDescriptionContainsJobSelector(Object key, String substring) Initialize this selector with a job metadata key and a value to compare with.ContainsJobSelector(String substring) Initialize this selector with a value to compare job names with. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the specified job is accepted by this selector.booleaninthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.job.JobSelector
and, negate, or, xor
-
Constructor Details
-
ContainsJobSelector
Initialize this selector with a value to compare job names with.
This constructor is equivalent to callingnew ContainsJobSelector(null, substring).- Parameters:
substring- the substring to look for.
-
ContainsJobSelector
Initialize this selector with a job metadata key and a value to compare with.- Parameters:
key- the metadata key of the value to compare with.substring- the substring to look for.
-
-
Method Details
-
accepts
Description copied from interface:JobSelectorDetermine whether the specified job is accepted by this selector.- Parameters:
job- the job to check.- Returns:
trueif the job is acepted,falseotherwise.
-
hashCode
public int hashCode() -
equals
-