public class SpotInstanceConfig extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static SpotInstanceConfig |
DEFAULT_SPOT_INSTANCE_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.aws.ec2.SpotPriceMatrix.Price |
getBid(String product,
com.amazonaws.services.ec2.model.InstanceType instanceType)
Retrieves the currently configured bid for spot instance.
|
com.atlassian.aws.ec2.SpotPriceMatrix |
getBidLevels()
Retrieves current bid matrix
|
int |
getSpotRequestTimeoutSeconds()
Getter for spot request timeout
|
boolean |
isEnabled()
This methods checks if spot instance functionality is enabled
|
void |
setBid(String product,
com.amazonaws.services.ec2.model.InstanceType instanceType,
double value)
Setter for current bid for spot instance
|
void |
setEnabled(boolean value)
Setter for spot instance functionality
|
void |
setSpotRequestTimeoutSeconds(int spotRequestTimeoutSeconds)
Setter for spot request timeout
|
public static final SpotInstanceConfig DEFAULT_SPOT_INSTANCE_CONFIG
public boolean isEnabled()
public void setEnabled(boolean value)
value - @Nullable
public com.atlassian.aws.ec2.SpotPriceMatrix.Price getBid(@NotNull
String product,
com.amazonaws.services.ec2.model.InstanceType instanceType)
product - the product for which the spot price is requestedinstanceType - the instance type for which the spot price is requestedpublic void setBid(String product, com.amazonaws.services.ec2.model.InstanceType instanceType, double value)
product - the product for which the spot price is requestedinstanceType - the instance type for which the spot price is requestedvalue - the value for bidpublic com.atlassian.aws.ec2.SpotPriceMatrix getBidLevels()
public int getSpotRequestTimeoutSeconds()
public void setSpotRequestTimeoutSeconds(int spotRequestTimeoutSeconds)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.