public interface MessageFilter extends MessageFilterFactory
This interface extends MessageFilterFactory and provides a default implementation for
its get(...) method. The method is implemented to return the filter itself. This allows
registering instances of this class with the graphical console lookup to be picked up by
the FilterRegistry. Note that this approach is only safe if the filter's test(...)
method can be invoked concurrently by multiple threads on multiple messages.
Default implementations provided for getParameters() and setParameters(...)
methods are suitable for filters that have no parameters. Parameterized filters might
use AbstractMessageFilter as a base class to simplify implementation.
| Modifier and Type | Method and Description |
|---|---|
default MessageFilter |
get(String[] parameters)
Returns a reference to this filter.
|
default String[] |
getParameters() |
default String |
getPath()
Returns the path of the filters created by this factory.
|
default void |
setParameters(String[] parameters) |
FilteredMessage |
test(FilteredMessage filteredMessage)
Applies this filter to the given message.
|
getDescription, getNameFilteredMessage test(FilteredMessage filteredMessage)
filteredMessage - The message to be filtered.null otherwise.default MessageFilter get(String[] parameters)
get in interface MessageFilterFactoryparameters - Parameters.default String getPath()
MessageFilterFactorygetPath in interface MessageFilterFactorydefault String[] getParameters()
default void setParameters(String[] parameters)
Copyright © 2018 LSST. All rights reserved.