Package hudson.slaves
Class NodeProvisioner.StrategyState
- java.lang.Object
-
- hudson.slaves.NodeProvisioner.StrategyState
-
- Enclosing class:
- NodeProvisioner
public final class NodeProvisioner.StrategyState extends Object
Parameter object forNodeProvisioner.Strategy
. Intentionally non-static as we need to reference some fields inNodeProvisioner
- Since:
- 1.588
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getAdditionalPlannedCapacity()
The additional planned capacity for thisgetLabel()
and provisioned by previous strategies during the current updating of theNodeProvisioner
.float
getAvailableExecutorsLatest()
The time series average number of available executors for thisgetLabel()
float
getBusyExecutorsLatest()
The time series average number of busy executors for thisgetLabel()
float
getConnectingExecutorsLatest()
The time series average number of connecting executors for thisgetLabel()
float
getDefinedExecutorsLatest()
The time series average number of defined executors for thisgetLabel()
float
getIdleExecutorsLatest()
The time series average number of idle executors for thisgetLabel()
float
getIdleLatest()
Deprecated.int
getIdleSnapshot()
Label
getLabel()
The label under consideration.float
getOnlineExecutorsLatest()
The time series average number of online executors for thisgetLabel()
float
getPlannedCapacityLatest()
The time series average planned capacity for thisgetLabel()
.int
getPlannedCapacitySnapshot()
The planned capacity for thisgetLabel()
.float
getQueueLengthLatest()
The time series average number of items in the queue requiring thisgetLabel()
.int
getQueueLengthSnapshot()
Deprecated.LoadStatistics.LoadStatisticsSnapshot
getSnapshot()
The current snapshot of the load statistics for thisgetLabel()
.float
getTotalLatest()
Deprecated.int
getTotalSnapshot()
Deprecated.void
recordPendingLaunches(NodeProvisioner.PlannedNode... plannedNodes)
If aNodeProvisioner.Strategy
takes some provisioning action, it should record andNodeProvisioner.PlannedNode
instances by calling this method.void
recordPendingLaunches(Collection<NodeProvisioner.PlannedNode> plannedNodes)
If aNodeProvisioner.Strategy
takes some provisioning action, it should record andNodeProvisioner.PlannedNode
instances by calling this method.String
toString()
-
-
-
Method Detail
-
getLabel
@CheckForNull public Label getLabel()
The label under consideration.
-
getSnapshot
public LoadStatistics.LoadStatisticsSnapshot getSnapshot()
The current snapshot of the load statistics for thisgetLabel()
.- Since:
- 1.607
-
getQueueLengthSnapshot
@Deprecated public int getQueueLengthSnapshot()
Deprecated.The number of items in the queue requiring thisgetLabel()
.
-
getPlannedCapacitySnapshot
public int getPlannedCapacitySnapshot()
The planned capacity for thisgetLabel()
.
-
getIdleSnapshot
@Deprecated public int getIdleSnapshot()
The number of idle executors for thisgetLabel()
-
getTotalSnapshot
@Deprecated public int getTotalSnapshot()
Deprecated.The total number of executors for thisgetLabel()
-
getAdditionalPlannedCapacity
public int getAdditionalPlannedCapacity()
The additional planned capacity for thisgetLabel()
and provisioned by previous strategies during the current updating of theNodeProvisioner
.
-
getQueueLengthLatest
public float getQueueLengthLatest()
The time series average number of items in the queue requiring thisgetLabel()
.
-
getPlannedCapacityLatest
public float getPlannedCapacityLatest()
The time series average planned capacity for thisgetLabel()
.
-
getIdleLatest
@Deprecated public float getIdleLatest()
Deprecated.The time series average number of idle executors for thisgetLabel()
-
getTotalLatest
@Deprecated public float getTotalLatest()
Deprecated.The time series average total number of executors for thisgetLabel()
-
getDefinedExecutorsLatest
public float getDefinedExecutorsLatest()
The time series average number of defined executors for thisgetLabel()
- Since:
- 1.607
-
getOnlineExecutorsLatest
public float getOnlineExecutorsLatest()
The time series average number of online executors for thisgetLabel()
- Since:
- 1.607
-
getConnectingExecutorsLatest
public float getConnectingExecutorsLatest()
The time series average number of connecting executors for thisgetLabel()
- Since:
- 1.607
-
getBusyExecutorsLatest
public float getBusyExecutorsLatest()
The time series average number of busy executors for thisgetLabel()
- Since:
- 1.607
-
getIdleExecutorsLatest
public float getIdleExecutorsLatest()
The time series average number of idle executors for thisgetLabel()
- Since:
- 1.607
-
getAvailableExecutorsLatest
public float getAvailableExecutorsLatest()
The time series average number of available executors for thisgetLabel()
- Since:
- 1.607
-
recordPendingLaunches
public void recordPendingLaunches(NodeProvisioner.PlannedNode... plannedNodes)
If aNodeProvisioner.Strategy
takes some provisioning action, it should record andNodeProvisioner.PlannedNode
instances by calling this method.- Parameters:
plannedNodes
- theNodeProvisioner.PlannedNode
instances.
-
recordPendingLaunches
public void recordPendingLaunches(Collection<NodeProvisioner.PlannedNode> plannedNodes)
If aNodeProvisioner.Strategy
takes some provisioning action, it should record andNodeProvisioner.PlannedNode
instances by calling this method.- Parameters:
plannedNodes
- theNodeProvisioner.PlannedNode
instances.
-
-