26
26
import hudson.model.MultiStageTimeSeries.TimeScale;
27
27
import hudson.model.MultiStageTimeSeries.TrendChart;
28
import hudson.util.ColorPalette;
29
28
import jenkins.model.Jenkins;
29
import org.kohsuke.accmod.Restricted;
30
import org.kohsuke.accmod.restrictions.NoExternalUse;
30
31
import org.kohsuke.stapler.export.Exported;
33
* {@link LoadStatistics} for the entire system (the master and all the slaves combined.)
36
* {@link #computeQueueLength()} and {@link #queueLength} counts those tasks
37
* that are unassigned to any node, whereas {@link #totalQueueLength}
38
* tracks the queue length including tasks that are assigned to a specific node.
34
* {@link LoadStatistics} for the entire system (the master and all the slaves combined),
35
* and all the jobs that are running on it.
40
37
* @author Kohsuke Kawaguchi
41
38
* @see Jenkins#overallLoad
39
* @see UnlabeldLoadStatistics
43
41
public class OverallLoadStatistics extends LoadStatistics {
45
43
* Number of total {@link Queue.BuildableItem}s that represents blocked builds.
45
* @deprecated as of 1.467
46
* Use {@link #queueLength}. Left as an alias here for backward compatibility.
48
public final MultiStageTimeSeries totalQueueLength = new MultiStageTimeSeries(
49
Messages._LoadStatistics_Legends_QueueLength(), ColorPalette.GREY, 0,DECAY);
49
@Restricted(NoExternalUse.class)
50
public final MultiStageTimeSeries totalQueueLength = queueLength;
51
52
public OverallLoadStatistics() {
72
73
* not {@link #queueLength}, which just shows jobs that are to be run on the master.
74
75
protected TrendChart createOverallTrendChart(TimeScale timeScale) {
75
return MultiStageTimeSeries.createTrendChart(timeScale,busyExecutors,totalExecutors,totalQueueLength);
76
return MultiStageTimeSeries.createTrendChart(timeScale,busyExecutors,totalExecutors,queueLength);