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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecord(String nodeName, String label, BuildRecord record) booleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) static NodeLabelStatsStoreget()Returns all (node, label) entries sorted by node name then label.getSuppressedEntries(int threshold) Returns all (node, label) entries currently suppressed at the given threshold.voidClears fault history for a single (node, label) pair, re-enabling it immediately.voidresetAll()Methods inherited from class GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
NodeLabelStatsStore
public NodeLabelStatsStore()
-
-
Method Details
-
get
-
addRecord
-
get
-
getAllEntries
Returns all (node, label) entries sorted by node name then label. -
getSuppressedEntries
Returns all (node, label) entries currently suppressed at the given threshold. -
reset
-
resetAll
public void resetAll() -
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) - Overrides:
configurein classGlobalConfiguration
-