hudson.model
Class OverallLoadStatistics

java.lang.Object
  extended by hudson.model.LoadStatistics
      extended by hudson.model.OverallLoadStatistics

public class OverallLoadStatistics
extends LoadStatistics

LoadStatistics for the entire system (the master and all the slaves combined), and all the jobs that are running on it.

Author:
Kohsuke Kawaguchi
See Also:
Jenkins.overallLoad, UnlabeldLoadStatistics

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.LoadStatistics
LoadStatistics.LoadStatisticsUpdater
 
Field Summary
 MultiStageTimeSeries totalQueueLength
          Deprecated. as of 1.467 Use LoadStatistics.queueLength. Left as an alias here for backward compatibility.
 
Fields inherited from class hudson.model.LoadStatistics
busyExecutors, CLOCK, DECAY, queueLength, totalExecutors
 
Constructor Summary
OverallLoadStatistics()
           
 
Method Summary
 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, not LoadStatistics.queueLength, which just shows jobs that are to be run on the master.
 
Methods inherited from class hudson.model.LoadStatistics
configureRenderer, createChart, createTrendChart, doGraph, getApi, getLatestIdleExecutors, updateExecutorCounts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalQueueLength

@Exported
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final MultiStageTimeSeries totalQueueLength
Deprecated. as of 1.467 Use LoadStatistics.queueLength. Left as an alias here for backward compatibility.
Number of total Queue.BuildableItems that represents blocked builds.

Constructor Detail

OverallLoadStatistics

public OverallLoadStatistics()
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 class LoadStatistics

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 class LoadStatistics

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 class LoadStatistics

createOverallTrendChart

protected MultiStageTimeSeries.TrendChart createOverallTrendChart(MultiStageTimeSeries.TimeScale timeScale)
When drawing the overall load statistics, use the total queue length, not LoadStatistics.queueLength, which just shows jobs that are to be run on the master.



Copyright © 2004-2013. All Rights Reserved.