org.quartz.locality.constraint.evaluator
Interface PersistentEvaluator<T extends Constraint,V>

Type Parameters:
T - A clusterable value type for the Map
All Superinterfaces:
Evaluator<T>
All Known Implementing Classes:
CpuEvaluator, MemoryEvaluator, OsEvaluator

public interface PersistentEvaluator<T extends Constraint,V>
extends Evaluator<T>

An particular Evaluator that will be passed a clustered ConcurrentMap instance to store shared data. The key type of that Map is String (instanceId generally) and its value type needs to be clusterable. This type lets Evaluators share data across the cluster, required for proper evaluation of potentially matching nodes.

Author:
Alex Snaps

Method Summary
 void initialize(String nodeName, ConcurrentMap<String,V> map)
          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
 
Methods inherited from interface org.quartz.locality.constraint.evaluator.Evaluator
matches, suitedNodes, verify
 

Method Detail

initialize

void initialize(String nodeName,
                ConcurrentMap<String,V> map)
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

Parameters:
nodeName - Local instanceId
map - the shared persistent storage for the Evaluator


Copyright 2001-2013, Terracotta, Inc.