Package com.amazon.jenkins.ec2fleet
Class FleetStateStats.State
java.lang.Object
com.amazon.jenkins.ec2fleet.FleetStateStats.State
- Enclosing class:
- FleetStateStats
Abstract state of different implementation of
EC2Fleet-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FleetStateStats.Stateactive()static FleetStateStats.StatebooleanDetailed information about EC2 Fleet for example EC2 Spot Fleet states areBatchStateinthashCode()booleanisActive()Fleet is good to be used for plugin, it will be shown on UI as option to use and plugin will use it for provisionEC2FleetCloud.provision(hudson.slaves.Cloud.CloudState, int)()} and de-provision otherwise activity will be ignored until state will not be updated.booleanIs underline fleet is updating so we need to suppress update until modification will be completed and fleet state will be stabilized.static FleetStateStats.Statestatic FleetStateStats.State
-
Constructor Details
-
State
-
-
Method Details
-
active
-
modifying
-
active
-
notActive
-
isModifying
public boolean isModifying()Is underline fleet is updating so we need to suppress update until modification will be completed and fleet state will be stabilized. This is important only forEC2SpotFleetas it has delay between update request and actual update of target capacity, whileAutoScalingGroupFleetdoes it in sync with update call. Consumed byEC2FleetCloud.update()- Returns:
- true or false
-
isActive
public boolean isActive()Fleet is good to be used for plugin, it will be shown on UI as option to use and plugin will use it for provisionEC2FleetCloud.provision(hudson.slaves.Cloud.CloudState, int)()} and de-provision otherwise activity will be ignored until state will not be updated.- Returns:
- true or false
-
getDetailed
Detailed information about EC2 Fleet for example EC2 Spot Fleet states areBatchState- Returns:
- string
-
equals
-
hashCode
public int hashCode()
-