@Extension
public class CloudNanny
extends hudson.model.PeriodicWork
EC2FleetCloud| Constructor and Description |
|---|
CloudNanny() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRun()
Exceptions
|
long |
getRecurrencePeriod() |
cancel, scheduledExecutionTimepublic long getRecurrencePeriod()
getRecurrencePeriod in class hudson.model.PeriodicWorkprotected 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 hudson.triggers.SafeTimerTaskCopyright © 2016–2020. All rights reserved.