@Extension public class CloudNanny extends PeriodicWork
CloudNanny
is responsible for periodically running update (i.e. sync-state-with-AWS) cycles for EC2FleetCloud
s.SafeTimerTask.ExceptionRunnable
ExtensionPoint.LegacyInstancesAreScopedToHudson
DAY, HOUR, logger, MIN
Constructor and Description |
---|
CloudNanny() |
Modifier and Type | Method and Description |
---|---|
protected void |
doRun()
Exceptions
|
long |
getRecurrencePeriod() |
all, getInitialDelay, init
getLogsRoot, of, run
cancel, scheduledExecutionTime
public long getRecurrencePeriod()
getRecurrencePeriod
in class PeriodicWork
protected void doRun()
PeriodicWork
inside ScheduledExecutorService
by default it stops execution if task throws exception, however PeriodicWork
fix that
by catch any exception and just log it, so we safe to throw exception here.doRun
in class SafeTimerTask
Copyright © 2016–2023. All rights reserved.