Package org.graylog.scheduler
Interface Job
- All Known Implementing Classes:
EventNotificationExecutionJob
,EventProcessorExecutionJob
public interface Job
Interface to be implemented by job classes.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalled by the scheduler when a trigger fires to execute the job.
-
Method Details
-
execute
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.- Parameters:
ctx
- the job execution context- Returns:
- the trigger update
- Throws:
JobExecutionException
- if the job execution fails
-