Package hudson.model
Class LoadStatistics.LoadStatisticsSnapshot
- java.lang.Object
-
- hudson.model.LoadStatistics.LoadStatisticsSnapshot
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- LoadStatistics
@ExportedBean public static class LoadStatistics.LoadStatisticsSnapshot extends Object implements Serializable
Holds a snapshot of the current statistics.- Since:
- 1.607
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoadStatistics.LoadStatisticsSnapshot.BuilderUse a builder so we can add more stats if needed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadStatistics.LoadStatisticsSnapshot.Builderbuilder()booleanequals(Object o)intgetAvailableExecutors()The total number of executors that are currently on-line, idle and accepting tasks.intgetBusyExecutors()The total number of executors that are currently busy running jobs.intgetConnectingExecutors()The total number of executors that are currently in the process of connecting to Jenkins.intgetDefinedExecutors()The total number of executors that Jenkins currently knows, this includes all off-line agents.intgetIdleExecutors()The total number of executors that are currently on-line and idle.intgetOnlineExecutors()The total number of executors that are currently on-line.intgetQueueLength()The number of items in the queue.inthashCode()StringtoString()
-
-
-
Method Detail
-
getDefinedExecutors
@Exported public int getDefinedExecutors()
The total number of executors that Jenkins currently knows, this includes all off-line agents.
-
getOnlineExecutors
@Exported public int getOnlineExecutors()
The total number of executors that are currently on-line.
-
getConnectingExecutors
@Exported public int getConnectingExecutors()
The total number of executors that are currently in the process of connecting to Jenkins.
-
getBusyExecutors
@Exported public int getBusyExecutors()
The total number of executors that are currently busy running jobs.
-
getIdleExecutors
@Exported public int getIdleExecutors()
The total number of executors that are currently on-line and idle. This includes executors that are not accepting tasks.
-
getAvailableExecutors
@Exported public int getAvailableExecutors()
The total number of executors that are currently on-line, idle and accepting tasks.
-
getQueueLength
@Exported public int getQueueLength()
The number of items in the queue.
-
builder
public static LoadStatistics.LoadStatisticsSnapshot.Builder builder()
-
-