Interface SchedulerListener
- All Known Implementing Classes:
AbstractSchedulerListener,SchedulerListeners,StatsRegistryAdapter
public interface SchedulerListener
The method-parameters might be subject to change. For instance, Event-types might be introduced
to hold the data relevant to the event.
Will typically run in the same Thread as the execution, so must not do I/O or similar slow operations.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidInternal scheduler event.voidonExecutionComplete(ExecutionComplete executionComplete) ExecutionHandlerdone.voidonExecutionDead(Execution execution) Scheduler has detected a dead execution.voidonExecutionFailedHeartbeat(CurrentlyExecuting currentlyExecuting) Scheduler failed to update heartbeat-timestamp for execution that it is currently executing.voidonExecutionScheduled(TaskInstanceId taskInstanceId, Instant executionTime) Execution scheduled either by theSchedulerClientor by aCompletionHandlervoidonExecutionStart(CurrentlyExecuting currentlyExecuting) Execution picked andExecutionHandlerabout to run.voidInternal scheduler event.
-
Field Details
-
NOOP
-
-
Method Details
-
onExecutionScheduled
Execution scheduled either by theSchedulerClientor by aCompletionHandler- Parameters:
taskInstanceId-executionTime-
-
onExecutionStart
Execution picked andExecutionHandlerabout to run. Will typically run in the same thread asonExecutionComplete- Parameters:
currentlyExecuting-
-
onExecutionComplete
ExecutionHandlerdone. Will typically run in the same thread asonExecutionStart- Parameters:
executionComplete-
-
onExecutionDead
Scheduler has detected a dead execution. About to runDeadExecutionHandler.- Parameters:
execution-
-
onExecutionFailedHeartbeat
Scheduler failed to update heartbeat-timestamp for execution that it is currently executing. Multiple failures will eventually lead to the execution being declared dead (and itsDeadExecutionHandlertriggered).- Parameters:
currentlyExecuting-
-
onSchedulerEvent
Internal scheduler event. Primarily intended for testing.- Parameters:
type-
-
onCandidateEvent
Internal scheduler event. Primarily intended for testing.- Parameters:
type-
-