Class NodeLabelStatsStore

java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.smartexecutorloadbalancer.NodeLabelStatsStore
All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public class NodeLabelStatsStore extends GlobalConfiguration
Singleton store for all (node, label) statistics.

Extends GlobalConfiguration so Jenkins persists the map automatically to $JENKINS_HOME/io.jenkins.plugins.smartexecutorloadbalancer .NodeLabelStatsStore.xml via XStream.

  • Constructor Details

    • NodeLabelStatsStore

      public NodeLabelStatsStore()
  • Method Details

    • get

      public static NodeLabelStatsStore get()
    • addRecord

      public void addRecord(String nodeName, String label, BuildRecord record)
    • get

      public NodeLabelStats get(String nodeName, String label)
    • getAllEntries

      public List<NodeLabelStats> getAllEntries()
      Returns all (node, label) entries sorted by node name then label.
    • getSuppressedEntries

      public List<NodeLabelStats> getSuppressedEntries(int threshold)
      Returns all (node, label) entries currently suppressed at the given threshold.
    • reset

      public void reset(String nodeName, String label)
      Clears fault history for a single (node, label) pair, re-enabling it immediately.
    • resetAll

      public void resetAll()
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json)
      Overrides:
      configure in class GlobalConfiguration