Class SystemNotificationEventProcessor
java.lang.Object
org.graylog.events.processor.systemnotification.SystemNotificationEventProcessor
- All Implemented Interfaces:
EventProcessor
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEvents(EventFactory eventFactory, EventProcessorParameters processorParameters, EventConsumer<List<EventWithContext>> eventsConsumer) Creates events by using the givenEventFactoryand passing them to the givenEventConsumer.voidsourceMessagesForEvent(Event event, Consumer<List<MessageSummary>> messageConsumer, long limit) Gets all source messages for the givenEventand passes them to themessageConsumer.
-
Constructor Details
-
SystemNotificationEventProcessor
-
-
Method Details
-
createEvents
public void createEvents(EventFactory eventFactory, EventProcessorParameters processorParameters, EventConsumer<List<EventWithContext>> eventsConsumer) throws EventProcessorException Description copied from interface:EventProcessorCreates events by using the givenEventFactoryand passing them to the givenEventConsumer.- Specified by:
createEventsin interfaceEventProcessor- Parameters:
eventFactory- the event factory to create newEventinstancesprocessorParameters- the event processor execution parameterseventsConsumer- the event consumer- Throws:
EventProcessorException- if the execution failsEventProcessorPreconditionException- if any preconditions are not met
-
sourceMessagesForEvent
public void sourceMessagesForEvent(Event event, Consumer<List<MessageSummary>> messageConsumer, long limit) throws EventProcessorException Description copied from interface:EventProcessorGets all source messages for the givenEventand passes them to themessageConsumer.- Specified by:
sourceMessagesForEventin interfaceEventProcessor- Parameters:
event- the event to get all source messages formessageConsumer- the consumer that all source messages will be passed intolimit- the maximum number of messages to get- Throws:
EventProcessorException
-