Package org.graylog2.filters
Class StaticFieldFilter
java.lang.Object
org.graylog2.filters.StaticFieldFilter
- All Implemented Interfaces:
MessageFilter
- Author:
- Lennart Koopmann <[email protected]>
-
Constructor Summary
ConstructorDescriptionStaticFieldFilter
(InputService inputService, com.google.common.eventbus.EventBus serverEventBus, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Process a MessagegetName()
int
For determining the runtime order of the filter, specify a priority.void
handleInputCreate
(InputCreated event) void
handleInputDelete
(InputDeleted event) void
handleInputUpdate
(InputUpdated event)
-
Constructor Details
-
StaticFieldFilter
@Inject public StaticFieldFilter(InputService inputService, com.google.common.eventbus.EventBus serverEventBus, @Named("daemonScheduler") ScheduledExecutorService scheduler)
-
-
Method Details
-
filter
Description copied from interface:MessageFilter
Process a Message- Specified by:
filter
in interfaceMessageFilter
- Returns:
- true if this message should not further be handled (for example for blacklisting purposes)
-
handleInputCreate
-
handleInputDelete
-
handleInputUpdate
-
getName
- Specified by:
getName
in interfaceMessageFilter
- Returns:
- The name of this filter. Should not include whitespaces or special characters.
-
getPriority
public int getPriority()Description copied from interface:MessageFilter
For determining the runtime order of the filter, specify a priority. Lower priority values are run earlier, if two filters have the same priority, their name will be compared to guarantee a repeatable order.- Specified by:
getPriority
in interfaceMessageFilter
- Returns:
- the priority
-