@Extension public class ComputerRetentionWork extends PeriodicWork
ExtensionPoint.LegacyInstancesAreScopedToHudson
DAY, HOUR, logger, MIN
Constructor and Description |
---|
ComputerRetentionWork() |
Modifier and Type | Method and Description |
---|---|
protected void |
doRun() |
long |
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.
|
all, getInitialDelay, init
run
cancel, scheduledExecutionTime
public long getRecurrencePeriod()
PeriodicWork
Hudson calls this method once to set up a recurring timer, instead of calling this each time after the previous execution completed. So this class cannot be used to implement a non-regular recurring timer.
IOW, the method should always return the same value.
getRecurrencePeriod
in class PeriodicWork
protected void doRun()
doRun
in class SafeTimerTask
Copyright © 2017. All rights reserved.