Package com.amazon.jenkins.ec2fleet
Class EC2FleetStatusWidgetUpdater
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
com.amazon.jenkins.ec2fleet.EC2FleetStatusWidgetUpdater
- All Implemented Interfaces:
ExtensionPoint,Runnable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoRun()Exceptions This method will be executed byPeriodicWorkinsideScheduledExecutorServiceby default it stops execution if task throws exception, howeverPeriodicWorkfix that by catch any exception and just log it, so we safe to throw exception here.longMethods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
EC2FleetStatusWidgetUpdater
public EC2FleetStatusWidgetUpdater()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriodin classPeriodicWork
-
doRun
protected void doRun()Exceptions This method will be executed by
PeriodicWorkinsideScheduledExecutorServiceby default it stops execution if task throws exception, howeverPeriodicWorkfix that by catch any exception and just log it, so we safe to throw exception here.- Specified by:
doRunin classSafeTimerTask
-