Class SpotConfiguration

All Implemented Interfaces:
Describable<SpotConfiguration>

public final class SpotConfiguration extends AbstractDescribableImpl<SpotConfiguration>
  • Field Details

    • useBidPrice

      public final boolean useBidPrice
  • Constructor Details

    • SpotConfiguration

      @Deprecated public SpotConfiguration(boolean useBidPrice, String spotMaxBidPrice, boolean fallbackToOndemand, String spotBlockReservationDurationStr)
      Deprecated.
    • SpotConfiguration

      @DataBoundConstructor public SpotConfiguration(boolean useBidPrice)
  • Method Details

    • getSpotMaxBidPrice

      public String getSpotMaxBidPrice()
    • setSpotMaxBidPrice

      @DataBoundSetter public void setSpotMaxBidPrice(String spotMaxBidPrice)
    • getFallbackToOndemand

      public boolean getFallbackToOndemand()
    • setFallbackToOndemand

      @DataBoundSetter public void setFallbackToOndemand(boolean fallbackToOndemand)
    • getSpotBlockReservationDuration

      public int getSpotBlockReservationDuration()
    • setSpotBlockReservationDuration

      @DataBoundSetter public void setSpotBlockReservationDuration(int spotBlockReservationDuration)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • normalizeBid

      public static String normalizeBid(String bid)
      Check if the specified value is a valid bid price to make a Spot request and return the normalized string for the float of the specified bid Bids must be >= .001
      Parameters:
      bid - - price to check
      Returns:
      The normalized string for a Float if possible, otherwise null