public class AggregationEventProcessor extends Object implements EventProcessor
| Modifier and Type | Class and Description |
|---|---|
static interface |
AggregationEventProcessor.Factory |
| Constructor and Description |
|---|
AggregationEventProcessor(EventDefinition eventDefinition,
AggregationSearch.Factory aggregationSearchFactory,
EventProcessorDependencyCheck dependencyCheck,
DBEventProcessorStateService stateService,
MoreSearch moreSearch,
StreamService streamService,
Messages messages) |
| Modifier and Type | Method and Description |
|---|---|
void |
createEvents(EventFactory eventFactory,
EventProcessorParameters processorParameters,
EventConsumer<List<EventWithContext>> eventsConsumer)
Creates events by using the given
EventFactory and passing them to the given EventConsumer. |
void |
sourceMessagesForEvent(Event event,
Consumer<List<MessageSummary>> messageConsumer,
long limit)
Gets all source messages for the given
Event and passes them to the messageConsumer. |
@Inject public AggregationEventProcessor(EventDefinition eventDefinition, AggregationSearch.Factory aggregationSearchFactory, EventProcessorDependencyCheck dependencyCheck, DBEventProcessorStateService stateService, MoreSearch moreSearch, StreamService streamService, Messages messages)
public void createEvents(EventFactory eventFactory, EventProcessorParameters processorParameters, EventConsumer<List<EventWithContext>> eventsConsumer) throws EventProcessorException
EventProcessorEventFactory and passing them to the given EventConsumer.createEvents in interface EventProcessoreventFactory - the event factory to create new Event instancesprocessorParameters - the event processor execution parameterseventsConsumer - the event consumerEventProcessorException - if the execution failsEventProcessorPreconditionException - if any preconditions are not metpublic void sourceMessagesForEvent(Event event, Consumer<List<MessageSummary>> messageConsumer, long limit) throws EventProcessorException
EventProcessorEvent and passes them to the messageConsumer.sourceMessagesForEvent in interface EventProcessorevent - the event to get all source messages formessageConsumer - the consumer that all source messages will be passed intolimit - the maximum number of messages to getEventProcessorExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.