Package jenkins.model
Class UnlabeledLoadStatistics
- java.lang.Object
-
- hudson.model.LoadStatistics
-
- jenkins.model.UnlabeledLoadStatistics
-
public class UnlabeledLoadStatistics extends LoadStatistics
LoadStatisticsthat track the "free roam" jobs (whoseSubTask.getAssignedLabel()is null) and the # of executors that can execute them (Nodewhose mode isNode.Mode.EXCLUSIVE)- Author:
- Kohsuke Kawaguchi
- See Also:
Node.Mode.EXCLUSIVE,Jenkins.unlabeledLoad,OverallLoadStatistics
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.LoadStatistics
LoadStatistics.LoadStatisticsSnapshot, LoadStatistics.LoadStatisticsUpdater
-
-
Field Summary
-
Fields inherited from class hudson.model.LoadStatistics
availableExecutors, busyExecutors, CLOCK, connectingExecutors, DECAY, definedExecutors, idleExecutors, onlineExecutors, queueLength, totalExecutors
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcomputeIdleExecutors()Computes the # of idle executors right now and obtains the snapshot value.intcomputeQueueLength()Computes the # of queue length right now and obtains the snapshot value.intcomputeTotalExecutors()Computes the # of total executors right now and obtains the snapshot value.protected Iterable<Node>getNodes()Returns theNodeinstances that this statistic counts.protected booleanmatches(Queue.Item item, SubTask subTask)-
Methods inherited from class hudson.model.LoadStatistics
computeSnapshot, computeSnapshot, configureRenderer, createChart, createTrendChart, doGraph, getApi, getLatestIdleExecutors, updateCounts, updateExecutorCounts
-
-
-
-
Method Detail
-
computeIdleExecutors
public int computeIdleExecutors()
Description copied from class:LoadStatisticsComputes the # of idle executors right now and obtains the snapshot value.- Specified by:
computeIdleExecutorsin classLoadStatistics
-
computeTotalExecutors
public int computeTotalExecutors()
Description copied from class:LoadStatisticsComputes the # of total executors right now and obtains the snapshot value.- Specified by:
computeTotalExecutorsin classLoadStatistics
-
computeQueueLength
public int computeQueueLength()
Description copied from class:LoadStatisticsComputes the # of queue length right now and obtains the snapshot value.- Specified by:
computeQueueLengthin classLoadStatistics
-
getNodes
protected Iterable<Node> getNodes()
Description copied from class:LoadStatisticsReturns theNodeinstances that this statistic counts.- Specified by:
getNodesin classLoadStatistics- Returns:
- the
Node
-
matches
protected boolean matches(Queue.Item item, SubTask subTask)
Description copied from class:LoadStatistics- Specified by:
matchesin classLoadStatistics- Parameters:
item- theQueue.Itemthat thebelongs tosubTask- theSubTask- Returns:
trueIFF the specifiedSubTaskfrom theQueueshould be counted.
-
-