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

@Extension public class ProxmoxOrphanCleanupRestartMonitor extends AdministrativeMonitor
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.
  • Constructor Details

    • ProxmoxOrphanCleanupRestartMonitor

      public ProxmoxOrphanCleanupRestartMonitor()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
      Overrides:
      getDisplayName in class AdministrativeMonitor
    • isActivated

      public boolean isActivated()
      Specified by:
      isActivated in class AdministrativeMonitor
    • 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

      public String getAffectedCloudsDisplay()
      Comma-separated names of the clouds whose reduced period needs a restart.