Package org.jenkinsci.plugins.proxmox
Class ProxmoxOrphanCleanup
java.lang.Object
java.util.TimerTask
hudson.triggers.SafeTimerTask
hudson.model.PeriodicWork
hudson.model.AsyncPeriodicWork
org.jenkinsci.plugins.proxmox.ProxmoxOrphanCleanup
- All Implemented Interfaces:
ExtensionPoint,Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.triggers.SafeTimerTask
SafeTimerTask.ExceptionRunnableNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AsyncPeriodicWork
nameFields inherited from class hudson.model.PeriodicWork
DAY, HOUR, logger, MIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(TaskListener listener) longThe smallest cleanup-enabled period (seconds) currently configured.longFire on the smallest configured cloud period (floored atMIN_BASE_MS), or the override when set.longThe cadence (seconds) the work is currently scheduled at (what Jenkins is actually using).Methods inherited from class hudson.model.AsyncPeriodicWork
createListener, doRun, getErrorLoggingLevel, getLogFile, getNormalLoggingLevel, getSlowLoggingLevel, queueIfAlreadyRunningMethods inherited from class hudson.model.PeriodicWork
all, getInitialDelay, initMethods inherited from class hudson.triggers.SafeTimerTask
getLogsRoot, of, runMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Constructor Details
-
ProxmoxOrphanCleanup
public ProxmoxOrphanCleanup()
-
-
Method Details
-
getRecurrencePeriod
public long getRecurrencePeriod()Fire on the smallest configured cloud period (floored atMIN_BASE_MS), or the override when set. Jenkins reads this once when scheduling the work; per-cloud gating inexecute(hudson.model.TaskListener)then applies any later edit at or above this base. Lowering a cloud's period below the startup base only fires faster after a restart, whichProxmoxOrphanCleanupRestartMonitorsurfaces.- Specified by:
getRecurrencePeriodin classPeriodicWork
-
execute
- Specified by:
executein classAsyncPeriodicWork
-
getScheduledPeriodSeconds
public long getScheduledPeriodSeconds()The cadence (seconds) the work is currently scheduled at (what Jenkins is actually using). -
getEffectivePeriodSeconds
public long getEffectivePeriodSeconds()The smallest cleanup-enabled period (seconds) currently configured.
-