Package org.jppf.job
Interface JobSelector
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AllJobsSelector,AtLeastJobSelector,AtMostJobSelector,BetweenEEJobSelector,BetweenEIJobSelector,BetweenIEJobSelector,BetweenIIJobSelector,ContainsJobSelector,EqualsJobSelector,IsOneOfJobSelector,JobNameSelector,JobUuidSelector,LessThanJobSelector,MoreThanJobSelector,NotEqualsJobSelector,RegexJobSelector,ScriptedJobSelector
Interface used to select or filter jobs in a client, driver or node.
- Since:
- 5.1
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JobSelectorA predefined singleton forAllJobsSelector. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine whether the specified job is accepted by this selector.default JobSelectorand(JobSelector... others) Obtain a job selector that realizes a logical "and" operation on this selector and an other.default JobSelectornegate()Negate this job selector.static JobSelectornot(JobSelector selector) Return a negation of the specified job selector.default JobSelectoror(JobSelector others) Obtain a job selector that realizes a logical "or" operation on this selector and an other.default JobSelectorxor(JobSelector other) Obtain a job selector that realizes a logical "xor" operation on this selector and an other.
-
Field Details
-
ALL_JOBS
A predefined singleton forAllJobsSelector.
-
-
Method Details
-
accepts
Determine whether the specified job is accepted by this selector.- Parameters:
job- the job to check.- Returns:
trueif the job is acepted,falseotherwise.
-
negate
Negate this job selector.- Returns:
- a
JobSelectorwhich negates this selector. - Since:
- 6.2
-
not
Return a negation of the specified job selector. This convenience method is equivalent to callingselector.negate().- Parameters:
selector- the selector to negate.- Returns:
- a job selector that realizes a logical "not" operation on this selector.
- Since:
- 6.2
-
and
Obtain a job selector that realizes a logical "and" operation on this selector and an other.- Parameters:
others- the other selectors to combine with.- Returns:
- a
JobSelectorwhich combines this selector and the other with an "and" operator. - Throws:
NullPointerException- ifotheris null.- Since:
- 6.2
-
or
Obtain a job selector that realizes a logical "or" operation on this selector and an other.- Parameters:
others- the other selectors to combine with.- Returns:
- a
JobSelectorwhich combines this selector and the other with an "or" operator. - Throws:
NullPointerException- ifotheris null.- Since:
- 6.2
-
xor
Obtain a job selector that realizes a logical "xor" operation on this selector and an other.- Parameters:
other- the other selector to combine with.- Returns:
- a
JobSelectorwhich combines this selector and the other with an "xor" operator. - Throws:
NullPointerException- ifotheris null.- Since:
- 6.2
-