public class OverallLoadStatistics extends LoadStatistics
LoadStatistics for the entire system (the master and all the slaves combined),
and all the jobs that are running on it.Jenkins.overallLoad,
UnlabeledLoadStatisticsLoadStatistics.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.BuildableItems that represents blocked builds.public int computeIdleExecutors()
LoadStatisticscomputeIdleExecutors in class LoadStatisticspublic int computeTotalExecutors()
LoadStatisticscomputeTotalExecutors in class LoadStatisticspublic int computeQueueLength()
LoadStatisticscomputeQueueLength in class LoadStatisticsprotected Iterable<Node> getNodes()
LoadStatisticsNode instances that this statistic counts.getNodes in class LoadStatisticsNodeprotected boolean matches(Queue.Item item, SubTask subTask)
LoadStatisticsmatches in class LoadStatisticsitem - the Queue.Item that the belongs tosubTask - the SubTasktrue 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 © 2019. All rights reserved.