public class UnlabeledLoadStatistics extends LoadStatistics
LoadStatistics that track the "free roam" jobs (whose SubTask.getAssignedLabel() is null)
and the # of executors that can execute them (Node whose mode is Node.Mode.EXCLUSIVE)Node.Mode.EXCLUSIVE,
Jenkins.unlabeledLoad,
OverallLoadStatisticsLoadStatistics.LoadStatisticsSnapshot, LoadStatistics.LoadStatisticsUpdateravailableExecutors, busyExecutors, CLOCK, connectingExecutors, DECAY, definedExecutors, idleExecutors, onlineExecutors, queueLength, totalExecutors| 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 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, updateExecutorCountspublic 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.Copyright © 2019. All rights reserved.