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
,
OverallLoadStatistics
LoadStatistics.LoadStatisticsSnapshot, LoadStatistics.LoadStatisticsUpdater
availableExecutors, 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, updateExecutorCounts
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.Copyright © 2017. All rights reserved.