public interface EventEvaluator<E> extends ContextAware, LifeCycle
Implementations are free to evaluate the event as they see fit. In particular, the evaluation results may depend on previous events.
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(E event)
Evaluates whether the event passed as parameter matches some user-specified
criteria.
|
String |
getName()
Gets this evaluator's name
|
void |
setName(String name)
Sets this evaluator's name
|
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
boolean evaluate(E event) throws NullPointerException, EvaluationException
The Evaluator
is free to evaluate the event as it pleases. In
particular, the evaluation results may depend on previous events.
event
- The event to evaluateNullPointerException
- can be thrown in presence of null valuesEvaluationException
- may be thrown during faulty evaluationString getName()
void setName(String name)
name
- the desired nameCopyright © 2005–2014 QOS.ch. All rights reserved.