Class SwapSpaceMonitor.DescriptorImpl

All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
SwapSpaceMonitor

@Extension @Symbol("swapSpace") public static class SwapSpaceMonitor.DescriptorImpl extends AbstractAsyncNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • canTakeOffline

      public boolean canTakeOffline()
      Description copied from class: AbstractNodeMonitorDescriptor
      Indicates if this monitor is capable to take agents offline in case it detects a problem. If true, this will enable the configuration option to ignore the monitor. Defaults to true so plugins that do not override this method behave as before. Plugins that do implement a monitor that will not take agents offline should override this method and return false.
      Overrides:
      canTakeOffline in class AbstractNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage>
      Returns:
      true if this monitor might take agents offline
    • createCallable

      protected hudson.node_monitors.SwapSpaceMonitor.MonitorTask createCallable(Computer c)
      Description copied from class: AbstractAsyncNodeMonitorDescriptor
      Creates a Callable that performs the monitoring when executed.
      Specified by:
      createCallable in class AbstractAsyncNodeMonitorDescriptor<org.jvnet.hudson.MemoryUsage>
    • getDisplayName

      @NonNull public String getDisplayName()
      Description copied from class: Descriptor
      Human readable name of this kind of configurable object. Should be overridden for most descriptors, if the display name is visible somehow. As a fallback it uses Class.getSimpleName() on Descriptor.clazz, so for example MyThing from some.pkg.MyThing.DescriptorImpl. Historically some implementations returned null as a way of hiding the descriptor from the UI, but this is generally managed by an explicit method such as isEnabled or isApplicable.
      Overrides:
      getDisplayName in class Descriptor<NodeMonitor>