Class ExecutorsMonitor
java.lang.Object
hudson.node_monitors.NodeMonitor
org.jenkinsci.plugins.executorsmonitor.ExecutorsMonitor
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeMonitor>
Reports the "busy/total/configured" executor counts of each node on the Nodes overview page.
"total" is the number of executors currently allowed to be live on the computer,
which may temporarily differ from "configured" (the node's configured executor
count) if that count was lowered while some of its executors were still busy.
This is purely informational: unlike the disk space or response time monitors,
it does not define any threshold and never takes a node offline.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.node_monitors.NodeMonitor
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintWhenisColorize()andisCountQueue()are both enabled, the queued count is colorized blue when it is 0, green while it does not exceed the configured executor count, uncolored while it does not exceedconfigured * N, and red beyond that.booleanWhether the busy/total counts should be colorized (blue/green/red) depending on how busy the node is.booleanWhether to also report the number of buildable queue items that this node could pick up, similar to the per-agent build queue shown by the computer-queue-plugin.protected ObjectXStream reconstructs already-persisted instances without calling the constructor, so thequeueThresholdFactorfield initializer above never runs for configs saved before that field existed -- it silently comes back as the Java default of 0 instead.voidsetColorize(boolean colorize) voidsetCountQueue(boolean countQueue) voidsetQueueThresholdFactor(int queueThresholdFactor) Methods inherited from class hudson.node_monitors.NodeMonitor
all, getAll, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
Constructor Details
-
ExecutorsMonitor
@DataBoundConstructor public ExecutorsMonitor()
-
-
Method Details
-
readResolve
XStream reconstructs already-persisted instances without calling the constructor, so thequeueThresholdFactorfield initializer above never runs for configs saved before that field existed -- it silently comes back as the Java default of 0 instead. Since 0 (and 1) are not valid values anyway (seegetQueueThresholdFactor()), treat them as "unset" here and repair them to the real default. -
isColorize
public boolean isColorize()Whether the busy/total counts should be colorized (blue/green/red) depending on how busy the node is. Defaults tofalse, i.e. the counts are rendered in the default color unless this is explicitly enabled. -
setColorize
@DataBoundSetter public void setColorize(boolean colorize) -
isCountQueue
public boolean isCountQueue()Whether to also report the number of buildable queue items that this node could pick up, similar to the per-agent build queue shown by the computer-queue-plugin. Defaults tofalse, since it requires scanning the whole build queue for every node on every page load. -
setCountQueue
@DataBoundSetter public void setCountQueue(boolean countQueue) -
getQueueThresholdFactor
public int getQueueThresholdFactor()WhenisColorize()andisCountQueue()are both enabled, the queued count is colorized blue when it is 0, green while it does not exceed the configured executor count, uncolored while it does not exceedconfigured * N, and red beyond that. Must be greater than 1 if set; defaults to 5. -
setQueueThresholdFactor
@DataBoundSetter public void setQueueThresholdFactor(int queueThresholdFactor) -
getColumnCaption
- Overrides:
getColumnCaptionin classNodeMonitor
-
data
- Overrides:
datain classNodeMonitor
-