Package hudson.plugins.ec2
Class SpotConfiguration
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<SpotConfiguration>
-
- hudson.plugins.ec2.SpotConfiguration
-
- All Implemented Interfaces:
Describable<SpotConfiguration>
public final class SpotConfiguration extends AbstractDescribableImpl<SpotConfiguration>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpotConfiguration.DescriptorImpl
-
Field Summary
Fields Modifier and Type Field Description boolean
useBidPrice
-
Constructor Summary
Constructors Constructor Description SpotConfiguration(boolean useBidPrice)
SpotConfiguration(boolean useBidPrice, String spotMaxBidPrice, boolean fallbackToOndemand, String spotBlockReservationDurationStr)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
getFallbackToOndemand()
int
getSpotBlockReservationDuration()
String
getSpotMaxBidPrice()
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
-
-
-
-
Constructor Detail
-
SpotConfiguration
@Deprecated public SpotConfiguration(boolean useBidPrice, String spotMaxBidPrice, boolean fallbackToOndemand, String spotBlockReservationDurationStr)
Deprecated.
-
SpotConfiguration
@DataBoundConstructor public SpotConfiguration(boolean useBidPrice)
-
-
Method Detail
-
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)
-
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
-
-