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 intgetAdditionalPlannedCapacity()The additional planned capacity for thisgetLabel()and provisioned by previous strategies during the current updating of theNodeProvisioner.floatgetAvailableExecutorsLatest()The time series average number of available executors for thisgetLabel()floatgetBusyExecutorsLatest()The time series average number of busy executors for thisgetLabel()floatgetConnectingExecutorsLatest()The time series average number of connecting executors for thisgetLabel()floatgetDefinedExecutorsLatest()The time series average number of defined executors for thisgetLabel()floatgetIdleExecutorsLatest()The time series average number of idle executors for thisgetLabel()floatgetIdleLatest()Deprecated.intgetIdleSnapshot()LabelgetLabel()The label under consideration.floatgetOnlineExecutorsLatest()The time series average number of online executors for thisgetLabel()floatgetPlannedCapacityLatest()The time series average planned capacity for thisgetLabel().intgetPlannedCapacitySnapshot()The planned capacity for thisgetLabel().floatgetQueueLengthLatest()The time series average number of items in the queue requiring thisgetLabel().intgetQueueLengthSnapshot()Deprecated.LoadStatistics.LoadStatisticsSnapshotgetSnapshot()The current snapshot of the load statistics for thisgetLabel().floatgetTotalLatest()Deprecated.intgetTotalSnapshot()Deprecated.voidrecordPendingLaunches(NodeProvisioner.PlannedNode... plannedNodes)If aNodeProvisioner.Strategytakes some provisioning action, it should record andNodeProvisioner.PlannedNodeinstances by calling this method.voidrecordPendingLaunches(Collection<NodeProvisioner.PlannedNode> plannedNodes)If aNodeProvisioner.Strategytakes some provisioning action, it should record andNodeProvisioner.PlannedNodeinstances by calling this method.StringtoString()
-
-
-
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.Strategytakes some provisioning action, it should record andNodeProvisioner.PlannedNodeinstances by calling this method.- Parameters:
plannedNodes- theNodeProvisioner.PlannedNodeinstances.
-
recordPendingLaunches
public void recordPendingLaunches(Collection<NodeProvisioner.PlannedNode> plannedNodes)
If aNodeProvisioner.Strategytakes some provisioning action, it should record andNodeProvisioner.PlannedNodeinstances by calling this method.- Parameters:
plannedNodes- theNodeProvisioner.PlannedNodeinstances.
-
-