Package org.graylog.events.notifications
Class EventNotificationExecutionJob
java.lang.Object
org.graylog.events.notifications.EventNotificationExecutionJob
- All Implemented Interfaces:
Job
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEventNotificationExecutionJob
(JobDefinitionDto jobDefinition, DBNotificationService dbNotificationService, DBEventDefinitionService eventDefinitionService, DBNotificationGracePeriodService notificationGracePeriodService, Map<String, EventNotification.Factory> eventNotificationFactories, EventsConfigurationProvider configurationProvider, EventNotificationExecutionMetrics metrics) -
Method Summary
Modifier and TypeMethodDescriptionCalled by the scheduler when a trigger fires to execute the job.
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
EventNotificationExecutionJob
@Inject public EventNotificationExecutionJob(JobDefinitionDto jobDefinition, DBNotificationService dbNotificationService, DBEventDefinitionService eventDefinitionService, DBNotificationGracePeriodService notificationGracePeriodService, Map<String, EventNotification.Factory> eventNotificationFactories, EventsConfigurationProvider configurationProvider, EventNotificationExecutionMetrics metrics)
-
-
Method Details
-
execute
Description copied from interface:Job
Called by the scheduler when a trigger fires to execute the job. It returns aJobTriggerUpdate
that instructs the scheduler about the next trigger execution time, trigger data and others.- Specified by:
execute
in interfaceJob
- Parameters:
ctx
- the job execution context- Returns:
- the trigger update
- Throws:
JobExecutionException
- if the job execution fails
-