Package org.graylog2.filters
Class ExtractorFilter
java.lang.Object
org.graylog2.filters.ExtractorFilter
- All Implemented Interfaces:
MessageFilter
-
Constructor Summary
ConstructorsConstructorDescriptionExtractorFilter(InputService inputService, com.google.common.eventbus.EventBus serverEventBus, ScheduledExecutorService scheduler) -
Method Summary
Modifier and TypeMethodDescriptionbooleanProcess a MessagegetName()intFor determining the runtime order of the filter, specify a priority.voidvoidvoidvoidhandleInputCreate(InputCreated event) voidhandleInputDelete(InputDeleted event) voidhandleInputUpdate(InputUpdated event) voidlifecycleChanged(Lifecycle lifecycle)
-
Constructor Details
-
ExtractorFilter
@Inject public ExtractorFilter(InputService inputService, com.google.common.eventbus.EventBus serverEventBus, @Named("daemonScheduler") ScheduledExecutorService scheduler)
-
-
Method Details
-
filter
Description copied from interface:MessageFilterProcess a Message- Specified by:
filterin interfaceMessageFilter- Returns:
- true if this message should not further be handled (for example for blacklisting purposes)
-
handleInputCreate
-
handleInputDelete
-
handleInputUpdate
-
handleExtractorCreate
-
handleExtractorDelete
-
handleExtractorUpdate
-
lifecycleChanged
-
getName
- Specified by:
getNamein interfaceMessageFilter- Returns:
- The name of this filter. Should not include whitespaces or special characters.
-
getPriority
public int getPriority()Description copied from interface:MessageFilterFor 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:
getPriorityin interfaceMessageFilter- Returns:
- the priority
-