Class StatsRegistryAdapter
java.lang.Object
com.github.kagkarlsson.scheduler.stats.StatsRegistryAdapter
- All Implemented Interfaces:
SchedulerListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.kagkarlsson.scheduler.event.SchedulerListener
SchedulerListener.CandidateEventType, SchedulerListener.SchedulerEventType -
Field Summary
Fields inherited from interface com.github.kagkarlsson.scheduler.event.SchedulerListener
NOOP -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
StatsRegistryAdapter
-
-
Method Details
-
onExecutionScheduled
Description copied from interface:SchedulerListenerExecution scheduled either by theSchedulerClientor by aCompletionHandler- Specified by:
onExecutionScheduledin interfaceSchedulerListener
-
onExecutionStart
Description copied from interface:SchedulerListenerExecution picked andExecutionHandlerabout to run. Will typically run in the same thread asonExecutionComplete- Specified by:
onExecutionStartin interfaceSchedulerListener
-
onExecutionComplete
Description copied from interface:SchedulerListenerExecutionHandlerdone. Will typically run in the same thread asonExecutionStart- Specified by:
onExecutionCompletein interfaceSchedulerListener
-
onExecutionDead
Description copied from interface:SchedulerListenerScheduler has detected a dead execution. About to runDeadExecutionHandler.- Specified by:
onExecutionDeadin interfaceSchedulerListener
-
onExecutionFailedHeartbeat
Description copied from interface:SchedulerListenerScheduler 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).- Specified by:
onExecutionFailedHeartbeatin interfaceSchedulerListener
-
onSchedulerEvent
Description copied from interface:SchedulerListenerInternal scheduler event. Primarily intended for testing.- Specified by:
onSchedulerEventin interfaceSchedulerListener
-
onCandidateEvent
Description copied from interface:SchedulerListenerInternal scheduler event. Primarily intended for testing.- Specified by:
onCandidateEventin interfaceSchedulerListener
-