Package org.jenkinsci.plugins.proxmox
Class ProxmoxOrphanCleanupRestartMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
org.jenkinsci.plugins.proxmox.ProxmoxOrphanCleanupRestartMonitor
- All Implemented Interfaces:
ExtensionPoint,ModelObject,SearchableModelObject,SearchItem,org.kohsuke.stapler.StaplerProxy
Warns, via the Jenkins administrative-monitor notification area, when a cloud's
Orphan Cleanup Period has been reduced below the cadence the cleanup work is currently
scheduled at.
ProxmoxOrphanCleanup.getRecurrencePeriod() is read once when Jenkins schedules
the fixed-rate timer, so a period lowered after startup cannot fire faster until a restart; this
surfaces that so the change is not silently ineffective. It clears itself once Jenkins is restarted
(the new, smaller period becomes the scheduled cadence) or the period is raised back.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.AdministrativeMonitor
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComma-separated names of the clouds whose reduced period needs a restart.longThe smallest cleanup period (seconds) now configured but not yet in effect.longThe cadence (seconds) the cleanup work is currently scheduled at.booleanMethods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isActivationFake, isEnabled, isSecurityMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Constructor Details
-
ProxmoxOrphanCleanupRestartMonitor
public ProxmoxOrphanCleanupRestartMonitor()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classAdministrativeMonitor
-
isActivated
public boolean isActivated()- Specified by:
isActivatedin classAdministrativeMonitor
-
getScheduledPeriodSeconds
public long getScheduledPeriodSeconds()The cadence (seconds) the cleanup work is currently scheduled at. -
getEffectivePeriodSeconds
public long getEffectivePeriodSeconds()The smallest cleanup period (seconds) now configured but not yet in effect. -
getAffectedCloudsDisplay
Comma-separated names of the clouds whose reduced period needs a restart.
-