public final class NodeProvisioner.StrategyState extends Object
NodeProvisioner.Strategy
.
Intentionally non-static as we need to reference some fields in NodeProvisioner
Modifier and Type | Method and Description |
---|---|
int |
getAdditionalPlannedCapacity()
The additional planned capacity for this
getLabel() and provisioned by previous strategies during
the current updating of the NodeProvisioner . |
float |
getAvailableExecutorsLatest()
The time series average number of available executors for this
getLabel() |
float |
getBusyExecutorsLatest()
The time series average number of busy executors for this
getLabel() |
float |
getConnectingExecutorsLatest()
The time series average number of connecting executors for this
getLabel() |
float |
getDefinedExecutorsLatest()
The time series average number of defined executors for this
getLabel() |
float |
getIdleExecutorsLatest()
The time series average number of idle executors for this
getLabel() |
float |
getIdleLatest()
Deprecated.
|
int |
getIdleSnapshot()
Deprecated.
use
getSnapshot() , LoadStatistics.LoadStatisticsSnapshot#getAvailableExecutors() |
Label |
getLabel()
The label under consideration.
|
float |
getOnlineExecutorsLatest()
The time series average number of online executors for this
getLabel() |
float |
getPlannedCapacityLatest()
The time series average planned capacity for this
getLabel() . |
int |
getPlannedCapacitySnapshot()
The planned capacity for this
getLabel() . |
float |
getQueueLengthLatest()
The time series average number of items in the queue requiring this
getLabel() . |
int |
getQueueLengthSnapshot()
Deprecated.
use
getSnapshot() , LoadStatistics.LoadStatisticsSnapshot#getQueueLength() |
LoadStatistics.LoadStatisticsSnapshot |
getSnapshot()
The current snapshot of the load statistics for this
getLabel() . |
float |
getTotalLatest()
Deprecated.
|
int |
getTotalSnapshot()
Deprecated.
use
getSnapshot() , LoadStatistics.LoadStatisticsSnapshot#getOnlineExecutors() |
void |
recordPendingLaunches(Collection<NodeProvisioner.PlannedNode> plannedNodes)
If a
NodeProvisioner.Strategy takes some provisioning action, it should record
and NodeProvisioner.PlannedNode instances by calling this method. |
void |
recordPendingLaunches(NodeProvisioner.PlannedNode... plannedNodes)
If a
NodeProvisioner.Strategy takes some provisioning action, it should record
and NodeProvisioner.PlannedNode instances by calling this method. |
String |
toString() |
public Label getLabel()
public LoadStatistics.LoadStatisticsSnapshot getSnapshot()
getLabel()
.@Deprecated public int getQueueLengthSnapshot()
getSnapshot()
, LoadStatistics.LoadStatisticsSnapshot#getQueueLength()
getLabel()
.public int getPlannedCapacitySnapshot()
getLabel()
.@Deprecated public int getIdleSnapshot()
getSnapshot()
, LoadStatistics.LoadStatisticsSnapshot#getAvailableExecutors()
getLabel()
@Deprecated public int getTotalSnapshot()
getSnapshot()
, LoadStatistics.LoadStatisticsSnapshot#getOnlineExecutors()
getLabel()
public int getAdditionalPlannedCapacity()
getLabel()
and provisioned by previous strategies during
the current updating of the NodeProvisioner
.public float getQueueLengthLatest()
getLabel()
.public float getPlannedCapacityLatest()
getLabel()
.@Deprecated public float getIdleLatest()
getAvailableExecutorsLatest()
getLabel()
@Deprecated public float getTotalLatest()
getOnlineExecutorsLatest()
getLabel()
public float getDefinedExecutorsLatest()
getLabel()
public float getOnlineExecutorsLatest()
getLabel()
public float getConnectingExecutorsLatest()
getLabel()
public float getBusyExecutorsLatest()
getLabel()
public float getIdleExecutorsLatest()
getLabel()
public float getAvailableExecutorsLatest()
getLabel()
public void recordPendingLaunches(NodeProvisioner.PlannedNode... plannedNodes)
NodeProvisioner.Strategy
takes some provisioning action, it should record
and NodeProvisioner.PlannedNode
instances by calling this method.plannedNodes
- the NodeProvisioner.PlannedNode
instances.public void recordPendingLaunches(Collection<NodeProvisioner.PlannedNode> plannedNodes)
NodeProvisioner.Strategy
takes some provisioning action, it should record
and NodeProvisioner.PlannedNode
instances by calling this method.plannedNodes
- the NodeProvisioner.PlannedNode
instances.Copyright © 2018. All rights reserved.