|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The constraint this evaluator is uniquely responsible forpublic interface Evaluator<T extends Constraint>
An Evaluator will match and potentially return best suited nodes for a Job to execute on.
Constraint
Method Summary | |
---|---|
boolean |
matches(T constraint)
Evaluates the constraint against local node. |
List<String> |
suitedNodes(T constraint)
Returns a list of best suited node (instanceId) based on the constraint |
void |
verify(T constraint)
Verifies the validity of a constraint. |
Method Detail |
---|
boolean matches(T constraint)
constraint
- The constraint to evaluate
Constraint#matches(Object)
List<String> suitedNodes(T constraint)
constraint
- To find best suited nodes for
void verify(T constraint) throws LocalityException
constraint
- The constraint to validate
LocalityException
- if validation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |