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.ExceptionRunnable
Nested 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 void
doRun()
Exceptions This method will be executed byPeriodicWork
insideScheduledExecutorService
by default it stops execution if task throws exception, howeverPeriodicWork
fix that by catch any exception and just log it, so we safe to throw exception here.long
Methods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, init
Methods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, run
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
EC2FleetStatusWidgetUpdater
public EC2FleetStatusWidgetUpdater()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()- Specified by:
getRecurrencePeriod
in classPeriodicWork
-
doRun
protected void doRun()Exceptions This method will be executed by
PeriodicWork
insideScheduledExecutorService
by default it stops execution if task throws exception, howeverPeriodicWork
fix that by catch any exception and just log it, so we safe to throw exception here.- Specified by:
doRun
in classSafeTimerTask
-