Class FleetStateStats.State

java.lang.Object
com.amazon.jenkins.ec2fleet.FleetStateStats.State
Enclosing class:
FleetStateStats

public static class FleetStateStats.State extends Object
Abstract state of different implementation of EC2Fleet
  • Constructor Details

    • State

      public State(boolean active, boolean modifying, String detailed)
  • Method Details

    • active

      public static FleetStateStats.State active(String detailed)
    • modifying

      public static FleetStateStats.State modifying(String detailed)
    • active

      public static FleetStateStats.State active()
    • notActive

      public static FleetStateStats.State notActive(String detailed)
    • 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 for EC2SpotFleet as it has delay between update request and actual update of target capacity, while AutoScalingGroupFleet does it in sync with update call. Consumed by EC2FleetCloud.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 provision EC2FleetCloud.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

      public String getDetailed()
      Detailed information about EC2 Fleet for example EC2 Spot Fleet states are BatchState
      Returns:
      string
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object