|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.modules.ehcache.store.EhcacheEvaluator
public class EhcacheEvaluator
Ehcache evaluator, which lets Jobs be executed on certain node, depending of the locality of the data in a Ehcache
| Constructor Summary | |
|---|---|
EhcacheEvaluator(ConcurrentMap<String,String> nodeIdToInstanceId)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
matches(EhcacheConstraint constraint)
Evaluates the constraint against local node. |
List<String> |
suitedNodes(EhcacheConstraint constraint)
Returns a list of best suited node (instanceId) based on the constraint |
void |
verify(EhcacheConstraint constraint)
Doesn't do anything |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhcacheEvaluator(ConcurrentMap<String,String> nodeIdToInstanceId)
nodeIdToInstanceId - the Map of nodeId (Terracotta) to instanceId (Quartz) mapping file (read only)| Method Detail |
|---|
public boolean matches(EhcacheConstraint constraint)
matches in interface Evaluator<EhcacheConstraint>constraint - The constraint to evaluate
Constraint#matches(Object)public List<String> suitedNodes(EhcacheConstraint constraint)
suitedNodes in interface Evaluator<EhcacheConstraint>constraint - To find best suited nodes for
public void verify(EhcacheConstraint constraint)
verify in interface Evaluator<EhcacheConstraint>constraint - The constraint to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||