public final class SpotConfiguration extends hudson.model.AbstractDescribableImpl<SpotConfiguration>
Modifier and Type | Class and Description |
---|---|
static class |
SpotConfiguration.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
boolean |
useBidPrice |
Constructor and Description |
---|
SpotConfiguration(boolean useBidPrice) |
SpotConfiguration(boolean useBidPrice,
String spotMaxBidPrice,
boolean fallbackToOndemand,
String spotBlockReservationDurationStr)
Deprecated.
|
Modifier and Type | Method and 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 >= .001
|
void |
setFallbackToOndemand(boolean fallbackToOndemand) |
void |
setSpotBlockReservationDuration(int spotBlockReservationDuration) |
void |
setSpotMaxBidPrice(String spotMaxBidPrice) |
@Deprecated public SpotConfiguration(boolean useBidPrice, String spotMaxBidPrice, boolean fallbackToOndemand, String spotBlockReservationDurationStr)
@DataBoundConstructor public SpotConfiguration(boolean useBidPrice)
public String getSpotMaxBidPrice()
@DataBoundSetter public void setSpotMaxBidPrice(String spotMaxBidPrice)
public boolean getFallbackToOndemand()
@DataBoundSetter public void setFallbackToOndemand(boolean fallbackToOndemand)
public int getSpotBlockReservationDuration()
@DataBoundSetter public void setSpotBlockReservationDuration(int spotBlockReservationDuration)
public static String normalizeBid(String bid)
bid
- - price to checkCopyright © 2016–2020. All rights reserved.