Package hudson.plugins.ec2
Class SpotConfiguration
- All Implemented Interfaces:
Describable<SpotConfiguration>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpotConfiguration
(boolean useBidPrice) SpotConfiguration
(boolean useBidPrice, String spotMaxBidPrice, boolean fallbackToOndemand, String spotBlockReservationDurationStr) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
int
int
hashCode()
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 >= .001void
setFallbackToOndemand
(boolean fallbackToOndemand) void
setSpotBlockReservationDuration
(int spotBlockReservationDuration) void
setSpotMaxBidPrice
(String spotMaxBidPrice) Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
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
-
setSpotMaxBidPrice
-
getFallbackToOndemand
public boolean getFallbackToOndemand() -
setFallbackToOndemand
@DataBoundSetter public void setFallbackToOndemand(boolean fallbackToOndemand) -
getSpotBlockReservationDuration
public int getSpotBlockReservationDuration() -
setSpotBlockReservationDuration
@DataBoundSetter public void setSpotBlockReservationDuration(int spotBlockReservationDuration) -
equals
-
hashCode
public int hashCode() -
normalizeBid
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
-