|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.agent.elastic.server.SpotInstanceConfig
public class SpotInstanceConfig
This class holds spot instance configuration
Field Summary | |
---|---|
static SpotInstanceConfig |
DEFAULT_SPOT_INSTANCE_CONFIG
|
Method Summary | |
---|---|
com.atlassian.aws.ec2.SpotPriceMatrix.Price |
getBid(java.lang.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(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SpotInstanceConfig DEFAULT_SPOT_INSTANCE_CONFIG
Method Detail |
---|
public boolean isEnabled()
public void setEnabled(boolean value)
value
- @Nullable public com.atlassian.aws.ec2.SpotPriceMatrix.Price getBid(java.lang.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 requested
public void setBid(java.lang.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |