Class ClockMonitor.DescriptorImpl

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

@Extension @Symbol("clock") public static class ClockMonitor.DescriptorImpl extends AbstractAsyncNodeMonitorDescriptor<ClockDifference>
  • 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<ClockDifference>
      Returns:
      true if this monitor might take agents offline
    • createCallable

      protected hudson.remoting.Callable<ClockDifference,IOException> createCallable(Computer c)
      Description copied from class: AbstractAsyncNodeMonitorDescriptor
      Creates a Callable that performs the monitoring when executed.
      Specified by:
      createCallable in class AbstractAsyncNodeMonitorDescriptor<ClockDifference>
    • 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>