com.atlassian.bamboo.agent.elastic.aws
Class AwsAccountBeanImpl
java.lang.Object
com.atlassian.bamboo.agent.elastic.aws.AwsAccountBeanImpl
- All Implemented Interfaces:
- AwsAccountBean, com.atlassian.event.EventListener
@ThreadSafe
public class AwsAccountBeanImpl
- extends java.lang.Object
- implements AwsAccountBean, com.atlassian.event.EventListener
Method Summary |
java.util.Map<java.lang.String,com.atlassian.aws.ec2.EC2AvailabilityZone> |
getAvailabilityZones()
Returns a list of availability zones and their status. |
com.atlassian.aws.AWSAccount |
getAwsAccount()
Returns an AWSAccount object that you can access certain services on |
java.lang.Class[] |
getHandledEventClasses()
|
void |
handleEvent(com.atlassian.event.Event event)
|
boolean |
validateAccountDetails(java.lang.String awsAccessID,
java.lang.String awsSecretKey)
Checks whether a basic command can be run using the supplied credenials |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AwsAccountBeanImpl
public AwsAccountBeanImpl(ElasticAccountBean elasticAccountBean,
com.atlassian.aws.AWSManager awsManager)
getAwsAccount
@NotNull
public com.atlassian.aws.AWSAccount getAwsAccount()
throws com.atlassian.aws.AWSException
- Description copied from interface:
AwsAccountBean
- Returns an AWSAccount object that you can access certain services on
- Specified by:
getAwsAccount
in interface AwsAccountBean
- Returns:
-
- Throws:
com.atlassian.aws.AWSException
getAvailabilityZones
@NotNull
public java.util.Map<java.lang.String,com.atlassian.aws.ec2.EC2AvailabilityZone> getAvailabilityZones()
throws com.atlassian.aws.AWSException
- Description copied from interface:
AwsAccountBean
- Returns a list of availability zones and their status.
- Specified by:
getAvailabilityZones
in interface AwsAccountBean
- Returns:
- A map of zones and their availability keyed by zone name.
- Throws:
com.atlassian.aws.AWSException
validateAccountDetails
public boolean validateAccountDetails(java.lang.String awsAccessID,
java.lang.String awsSecretKey)
throws com.atlassian.aws.AWSException
- Description copied from interface:
AwsAccountBean
- Checks whether a basic command can be run using the supplied credenials
- Specified by:
validateAccountDetails
in interface AwsAccountBean
- Returns:
- true if the command is possible
- Throws:
com.atlassian.aws.AWSException
- if a connection error occurred (not that the credentials were correct or incorrect)
handleEvent
public void handleEvent(com.atlassian.event.Event event)
- Specified by:
handleEvent
in interface com.atlassian.event.EventListener
getHandledEventClasses
public java.lang.Class[] getHandledEventClasses()
- Specified by:
getHandledEventClasses
in interface com.atlassian.event.EventListener
Copyright © 2011 Atlassian. All Rights Reserved.