|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.quartz.locality.constraint.evaluator.OsEvaluator
public class OsEvaluator
Evaluator that persists all nodes' Operation Systems
| Constructor Summary | |
|---|---|
OsEvaluator()
|
|
| Method Summary | |
|---|---|
void |
initialize(String nName,
ConcurrentMap<String,Set<String>> storageSet)
During its bootstrapping, the JobStore will call this method once on each node,
passing a Clustered ConcurrentMap instance and the local instanceId of the Scheduler |
boolean |
matches(OsConstraint constraint)
Evaluates the constraint against local node. |
List<String> |
suitedNodes(OsConstraint constraint)
Returns a list of best suited node (instanceId) based on the constraint |
void |
verify(OsConstraint constraint)
Verifies the validity of a constraint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsEvaluator()
| Method Detail |
|---|
public boolean matches(OsConstraint constraint)
matches in interface Evaluator<OsConstraint>constraint - The constraint to evaluate
Constraint#matches(Object)public List<String> suitedNodes(OsConstraint constraint)
suitedNodes in interface Evaluator<OsConstraint>constraint - To find best suited nodes for
public void verify(OsConstraint constraint)
verify in interface Evaluator<OsConstraint>constraint - The constraint to validate
public void initialize(String nName,
ConcurrentMap<String,Set<String>> storageSet)
JobStore will call this method once on each node,
passing a Clustered ConcurrentMap instance and the local instanceId of the Scheduler
initialize in interface PersistentEvaluator<OsConstraint,Set<String>>nName - Local instanceIdstorageSet - the shared persistent storage for the Evaluator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||