public interface Filter
Emitter
Modifier and Type | Method and Description |
---|---|
void |
close()
Causes the filter to release all resources that are owned by this
object and its dependents.
|
com.ibm.events.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.
|
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 service by the emitter; false
otherwise.FilterException
- If an error occurs during filter processing.com.ibm.events.ComponentMetaData getMetaData() throws FilterException
FilterException
- If the metadata is not available.void close() throws FilterException
EventsException
- If an error occurs when releasing resources held
by the filter.FilterException