@Extension public class HudsonHomeDiskUsageChecker extends PeriodicWork
HudsonHomeDiskUsageMonitor if necessary.ExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static long |
FREE_SPACE_THRESHOLD
Gets the minimum amount of space to check for, with a default of 1GB
|
DAY, HOUR, logger, MIN| Constructor and Description |
|---|
HudsonHomeDiskUsageChecker() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRun() |
long |
getRecurrencePeriod()
Gets the number of milliseconds between successive executions.
|
all, getInitialDelay, initruncancel, scheduledExecutionTimepublic static long FREE_SPACE_THRESHOLD
public long getRecurrencePeriod()
PeriodicWorkHudson 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 PeriodicWorkprotected void doRun()
doRun in class SafeTimerTaskCopyright © 2019. All rights reserved.