|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for the filter that is used by an event emitter to determine whether or not an event should be sent to the event bus.
Emitter
Method Summary | |
---|---|
void |
close()
Causes the filter to release all resources that are owned by this object and its dependents. |
ComponentMetaData |
getMetaData()
Obtains the metadata from this filter instance. |
boolean |
isEventEnabled(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)
Determines whether or not the passed event matches the configured filtering criteria. |
Method Detail |
public boolean isEventEnabled(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event) throws FilterException
Determines whether or not the passed event matches the configured
filtering criteria. The emitter forwards only events
that return true
from this method.
Implementations of this method must be threadsafe.
event
- The event instance that represents the event to be filtered.
true
if the event matches the filtering criteria and should,
therefore, be passed to the event bus by the emitter; false
otherwise.
FilterException
- If an error occurs during filter processing.public ComponentMetaData getMetaData() throws FilterException
FilterException
- If the metadata is not available.public void close() throws FilterException
EventsException
- If an error occurs when releasing resources held
by the filter.
FilterException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |