E
- public abstract class JaninoEventEvaluatorBase<E> extends EventEvaluatorBase<E>
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_THRESHOLD |
protected List<Matcher> |
matcherList |
context
Constructor and Description |
---|
JaninoEventEvaluatorBase() |
Modifier and Type | Method and Description |
---|---|
void |
addMatcher(Matcher matcher) |
boolean |
evaluate(E event)
Evaluates whether the event passed as parameter matches some user-specified
criteria.
|
protected abstract String |
getDecoratedExpression() |
String |
getExpression() |
List<Matcher> |
getMatcherList() |
protected abstract String[] |
getParameterNames() |
protected abstract Class<?>[] |
getParameterTypes() |
protected abstract Object[] |
getParameterValues(E event) |
void |
setExpression(String expression) |
void |
start() |
getName, isStarted, setName, stop
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
public static final int ERROR_THRESHOLD
protected abstract String getDecoratedExpression()
protected abstract String[] getParameterNames()
protected abstract Class<?>[] getParameterTypes()
public void start()
start
in interface LifeCycle
start
in class EventEvaluatorBase<E>
public boolean evaluate(E event) throws EvaluationException
EventEvaluator
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 evaluateEvaluationException
- may be thrown during faulty evaluationpublic String getExpression()
public void setExpression(String expression)
public void addMatcher(Matcher matcher)
Copyright © 2005–2021 QOS.ch. All rights reserved.