@ThreadSafe public class AwsAccountBeanImpl extends Object implements com.atlassian.bamboo.agent.elastic.aws.AwsAccountBean
| Constructor and Description |
|---|
AwsAccountBeanImpl(com.atlassian.bamboo.agent.elastic.server.ElasticAccountBean elasticAccountBean,
com.atlassian.aws.AWSManager awsManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region,
String awsAccessID,
String awsSecretKey) |
String |
getAccountDetailsValidationError(String awsAccessID,
String awsSecretKey) |
com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.AvailabilityZone> |
getAvailabilityZones() |
com.atlassian.aws.AWSAccount |
getAwsAccount() |
com.atlassian.aws.ec2.SpotPrices |
getCurrentSpotPrices()
This price list is cached and refreshed not more often than MAXIMUM_SPOT_PRICES_AGE.
|
void |
onElasticConfigUpdatedEvent(com.atlassian.bamboo.event.ElasticConfigUpdatedEvent event) |
void |
setMaximumEbsVolumeStatusAgeSeconds(int maximumStatusAge) |
void |
setMaximumInstanceStatusAgeSeconds(int maximumStatusAge) |
void |
setMaximumSpotRequestStatusAgeSeconds(int maximumStatusAge) |
public AwsAccountBeanImpl(com.atlassian.bamboo.agent.elastic.server.ElasticAccountBean elasticAccountBean, com.atlassian.aws.AWSManager awsManager)
@NotNull
public com.atlassian.aws.AWSAccount getAwsAccount()
throws com.atlassian.aws.AWSException
getAwsAccount in interface com.atlassian.bamboo.agent.elastic.aws.AwsAccountBeancom.atlassian.aws.AWSException@NotNull public com.google.common.collect.ImmutableMap<String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones() throws com.atlassian.aws.AWSException
getAvailabilityZones in interface com.atlassian.bamboo.agent.elastic.aws.AwsAccountBeancom.atlassian.aws.AWSException@Nullable public String getAccountDetailsValidationError(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region, String awsAccessID, String awsSecretKey) throws com.atlassian.aws.AWSException
getAccountDetailsValidationError in interface com.atlassian.bamboo.agent.elastic.aws.AwsAccountBeancom.atlassian.aws.AWSException@Nullable public String getAccountDetailsValidationError(String awsAccessID, String awsSecretKey) throws com.atlassian.aws.AWSException
getAccountDetailsValidationError in interface com.atlassian.bamboo.agent.elastic.aws.AwsAccountBeancom.atlassian.aws.AWSException@EventListener public void onElasticConfigUpdatedEvent(com.atlassian.bamboo.event.ElasticConfigUpdatedEvent event)
@NotNull public com.atlassian.aws.ec2.SpotPrices getCurrentSpotPrices()
getCurrentSpotPrices in interface com.atlassian.bamboo.agent.elastic.aws.AwsAccountBeanpublic void setMaximumEbsVolumeStatusAgeSeconds(int maximumStatusAge)
public void setMaximumInstanceStatusAgeSeconds(int maximumStatusAge)
public void setMaximumSpotRequestStatusAgeSeconds(int maximumStatusAge)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.