|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.filter.FilterServiceImpl
public final class FilterServiceImpl
Implementation of the filter service interface. Does not allow the same filter callback to be added more then once.
Constructor Summary | |
---|---|
protected |
FilterServiceImpl()
Constructor. |
Method Summary | |
---|---|
void |
add(FilterValueSet filterValueSet,
FilterHandle filterCallback)
Add a filter for events as defined by the filter specification, and register a callback to be invoked upon evaluation of an event that matches the filter spec. |
void |
destroy()
Destroy the service. |
void |
evaluate(EventBean eventBean,
Collection<FilterHandle> matches)
Finds matching filters to the event passed in and invokes their associated callback method. |
int |
getNumEventsEvaluated()
Return a count of the number of events evaluated by this service. |
void |
remove(FilterHandle filterCallback)
Remove a filter callback. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FilterServiceImpl()
Method Detail |
---|
public void destroy()
FilterService
destroy
in interface FilterService
public final void add(FilterValueSet filterValueSet, FilterHandle filterCallback)
FilterService
add
in interface FilterService
filterValueSet
- is a specification of filter parameters, contains
event type information, event property values and operatorsfilterCallback
- is the callback to be invoked when the filter matches an eventpublic final void remove(FilterHandle filterCallback)
FilterService
remove
in interface FilterService
filterCallback
- is the callback to be removedpublic final void evaluate(EventBean eventBean, Collection<FilterHandle> matches)
FilterService
evaluate
in interface FilterService
eventBean
- is the event to be matched against filtersmatches
- is a collection that is populated via add method with any handles for matching filterspublic final int getNumEventsEvaluated()
FilterService
getNumEventsEvaluated
in interface FilterService
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |