Package hudson.slaves
Class NodeProvisioner.StrategyState
java.lang.Object
hudson.slaves.NodeProvisioner.StrategyState
- Enclosing class:
- NodeProvisioner
Parameter object for
NodeProvisioner.Strategy
.
Intentionally non-static as we need to reference some fields in NodeProvisioner
- Since:
- 1.588
-
Method Summary
Modifier and TypeMethodDescriptionint
The additional planned capacity for thisgetLabel()
and provisioned by previous strategies during the current updating of theNodeProvisioner
.float
The time series average number of available executors for thisgetLabel()
float
The time series average number of busy executors for thisgetLabel()
float
The time series average number of connecting executors for thisgetLabel()
float
The time series average number of defined executors for thisgetLabel()
float
The time series average number of idle executors for thisgetLabel()
float
Deprecated.int
getLabel()
The label under consideration.float
The time series average number of online executors for thisgetLabel()
float
The time series average planned capacity for thisgetLabel()
.int
The planned capacity for thisgetLabel()
.float
The time series average number of items in the queue requiring thisgetLabel()
.int
Deprecated.The current snapshot of the load statistics for thisgetLabel()
.float
Deprecated.int
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.toString()
-
Method Details
-
getLabel
The label under consideration. -
getSnapshot
The current snapshot of the load statistics for thisgetLabel()
.- Since:
- 1.607
-
getQueueLengthSnapshot
Deprecated.The number of items in the queue requiring thisgetLabel()
. -
getPlannedCapacitySnapshot
public int getPlannedCapacitySnapshot()The planned capacity for thisgetLabel()
. -
getIdleSnapshot
The number of idle executors for thisgetLabel()
-
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.The time series average number of idle executors for thisgetLabel()
-
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
If aNodeProvisioner.Strategy
takes some provisioning action, it should record andNodeProvisioner.PlannedNode
instances by calling this method.- Parameters:
plannedNodes
- theNodeProvisioner.PlannedNode
instances.
-
recordPendingLaunches
If aNodeProvisioner.Strategy
takes some provisioning action, it should record andNodeProvisioner.PlannedNode
instances by calling this method.- Parameters:
plannedNodes
- theNodeProvisioner.PlannedNode
instances.
-
toString
-
getAvailableExecutorsLatest()