public class OverallLoadStatistics extends LoadStatistics
LoadStatistics
for the entire system (the master and all the agents combined),
and all the jobs that are running on it.Jenkins.overallLoad
,
UnlabeledLoadStatistics
LoadStatistics.LoadStatisticsSnapshot, LoadStatistics.LoadStatisticsUpdater
Modifier and Type | Field and Description |
---|---|
MultiStageTimeSeries |
totalQueueLength
Deprecated.
as of 1.467
Use
LoadStatistics.queueLength . Left as an alias here for backward compatibility. |
availableExecutors, busyExecutors, CLOCK, connectingExecutors, DECAY, definedExecutors, idleExecutors, onlineExecutors, queueLength, totalExecutors
Constructor and Description |
---|
OverallLoadStatistics() |
Modifier and Type | Method and Description |
---|---|
int |
computeIdleExecutors()
Computes the # of idle executors right now and obtains the snapshot value.
|
int |
computeQueueLength()
Computes the # of queue length right now and obtains the snapshot value.
|
int |
computeTotalExecutors()
Computes the # of total executors right now and obtains the snapshot value.
|
protected MultiStageTimeSeries.TrendChart |
createOverallTrendChart(MultiStageTimeSeries.TimeScale timeScale)
When drawing the overall load statistics, use the total queue length,
not
LoadStatistics.queueLength , which just shows jobs that are to be run on the master. |
protected Iterable<Node> |
getNodes()
Returns the
Node instances that this statistic counts. |
protected boolean |
matches(Queue.Item item,
SubTask subTask)
|
computeSnapshot, computeSnapshot, configureRenderer, createChart, createTrendChart, doGraph, getApi, getLatestIdleExecutors, updateCounts, updateExecutorCounts
@Exported @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Deprecated public final MultiStageTimeSeries totalQueueLength
LoadStatistics.queueLength
. Left as an alias here for backward compatibility.Queue.BuildableItem
s that represents blocked builds.public int computeIdleExecutors()
LoadStatistics
computeIdleExecutors
in class LoadStatistics
public int computeTotalExecutors()
LoadStatistics
computeTotalExecutors
in class LoadStatistics
public int computeQueueLength()
LoadStatistics
computeQueueLength
in class LoadStatistics
protected Iterable<Node> getNodes()
LoadStatistics
Node
instances that this statistic counts.getNodes
in class LoadStatistics
Node
protected boolean matches(Queue.Item item, SubTask subTask)
LoadStatistics
matches
in class LoadStatistics
item
- the Queue.Item
that the belongs to
subTask
- the SubTask
true
IFF the specified SubTask
from the Queue
should be counted.protected MultiStageTimeSeries.TrendChart createOverallTrendChart(MultiStageTimeSeries.TimeScale timeScale)
LoadStatistics.queueLength
, which just shows jobs that are to be run on the master.Copyright © 2004–2021. All rights reserved.