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 |
getIdleLatest()
The time series average number of idle executors for this
getLabel() |
int |
getIdleSnapshot()
The number of idle executors for this
getLabel() |
Label |
getLabel()
The label under consideration.
|
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()
The number of items in the queue requiring this
getLabel() . |
float |
getTotalLatest()
The time series average total number of executors for this
getLabel() |
int |
getTotalSnapshot()
The total number of executors for this
getLabel() |
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 int getQueueLengthSnapshot()
getLabel()
.public int getPlannedCapacitySnapshot()
getLabel()
.public int getIdleSnapshot()
getLabel()
public int getTotalSnapshot()
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()
.public float getIdleLatest()
getLabel()
public float getTotalLatest()
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 © 2015. All rights reserved.