Package hudson.model
Class OverallLoadStatistics
- java.lang.Object
-
- hudson.model.LoadStatistics
-
- hudson.model.OverallLoadStatistics
-
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.- Author:
- Kohsuke Kawaguchi
- See Also:
Jenkins.overallLoad
,UnlabeledLoadStatistics
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.LoadStatistics
LoadStatistics.LoadStatisticsSnapshot, LoadStatistics.LoadStatisticsUpdater
-
-
Field Summary
Fields Modifier and Type Field Description MultiStageTimeSeries
totalQueueLength
Deprecated.as of 1.467 UseLoadStatistics.queueLength
.-
Fields inherited from class hudson.model.LoadStatistics
availableExecutors, busyExecutors, CLOCK, connectingExecutors, DECAY, definedExecutors, idleExecutors, onlineExecutors, queueLength, totalExecutors
-
-
Constructor Summary
Constructors Constructor Description OverallLoadStatistics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, notLoadStatistics.queueLength
, which just shows jobs that are to be run on the master.protected Iterable<Node>
getNodes()
Returns theNode
instances that this statistic counts.protected boolean
matches(Queue.Item item, SubTask subTask)
-
Methods inherited from class hudson.model.LoadStatistics
computeSnapshot, computeSnapshot, configureRenderer, createChart, createTrendChart, doGraph, getApi, getLatestIdleExecutors, updateCounts, updateExecutorCounts
-
-
-
-
Field Detail
-
totalQueueLength
@Exported @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Deprecated public final MultiStageTimeSeries totalQueueLength
Deprecated.as of 1.467 UseLoadStatistics.queueLength
. Left as an alias here for backward compatibility.Number of totalQueue.BuildableItem
s that represents blocked builds.
-
-
Method Detail
-
computeIdleExecutors
public int computeIdleExecutors()
Description copied from class:LoadStatistics
Computes the # of idle executors right now and obtains the snapshot value.- Specified by:
computeIdleExecutors
in classLoadStatistics
-
computeTotalExecutors
public int computeTotalExecutors()
Description copied from class:LoadStatistics
Computes the # of total executors right now and obtains the snapshot value.- Specified by:
computeTotalExecutors
in classLoadStatistics
-
computeQueueLength
public int computeQueueLength()
Description copied from class:LoadStatistics
Computes the # of queue length right now and obtains the snapshot value.- Specified by:
computeQueueLength
in classLoadStatistics
-
getNodes
protected Iterable<Node> getNodes()
Description copied from class:LoadStatistics
Returns theNode
instances that this statistic counts.- Specified by:
getNodes
in classLoadStatistics
- Returns:
- the
Node
-
matches
protected boolean matches(Queue.Item item, SubTask subTask)
Description copied from class:LoadStatistics
- Specified by:
matches
in classLoadStatistics
- Parameters:
item
- theQueue.Item
that thebelongs to
subTask
- theSubTask
- Returns:
true
IFF the specifiedSubTask
from theQueue
should be counted.
-
createOverallTrendChart
protected MultiStageTimeSeries.TrendChart createOverallTrendChart(MultiStageTimeSeries.TimeScale timeScale)
When drawing the overall load statistics, use the total queue length, notLoadStatistics.queueLength
, which just shows jobs that are to be run on the master.
-
-