Class ElasticConfigurationImpl
java.lang.Object
com.atlassian.bamboo.agent.elastic.server.ElasticConfigurationImpl
- All Implemented Interfaces:
ElasticConfiguration
,Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region
static @NotNull com.atlassian.aws.ec2.configuration.ImageData
boolean
If automatic shutdown of instances is enabledboolean
Whether or not Elastic Bamboo is enabled or not.boolean
boolean
void
void
setAutoShutdownDelay
(int autoShutdownDelay) void
setAutoShutdownEnabled
(boolean autoShutdownEnabled) void
setAwsAccessKeyId
(String awsAccessKeyId) void
setAwsCertFile
(String awsCertFile) void
setAwsCredentialsType
(AwsCredentialsType awsCredentialsType) void
setAwsPrivateKeyFile
(String awsPrivateKeyFile) void
setAwsSecretKey
(String awsSecretKey) void
setEnabled
(boolean enabled) void
setMaxConcurrentInstances
(int maxConcurrentInstances) void
setPublicIpForVpcEnabled
(boolean value) void
setRegion
(com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region) void
setUploadingOfAwsAccountDetailsEnabled
(boolean uploadingOfAwsAccountDetailsEnabled)
-
Constructor Details
-
ElasticConfigurationImpl
public ElasticConfigurationImpl()
-
-
Method Details
-
getAwsCredentialsType
- Specified by:
getAwsCredentialsType
in interfaceElasticConfiguration
- Returns:
- AWS credentials type
-
setAwsCredentialsType
- Specified by:
setAwsCredentialsType
in interfaceElasticConfiguration
-
getAwsAccessKeyId
- Specified by:
getAwsAccessKeyId
in interfaceElasticConfiguration
- Returns:
- AWS Access Key ID
-
setAwsAccessKeyId
- Specified by:
setAwsAccessKeyId
in interfaceElasticConfiguration
-
getAwsSecretKey
- Specified by:
getAwsSecretKey
in interfaceElasticConfiguration
- Returns:
- Encrypted secret ket for aws account
-
setAwsSecretKey
- Specified by:
setAwsSecretKey
in interfaceElasticConfiguration
-
getMaxConcurrentInstances
public int getMaxConcurrentInstances()- Specified by:
getMaxConcurrentInstances
in interfaceElasticConfiguration
- Returns:
- Max number of elastic agents that can be running at any time.
-
setMaxConcurrentInstances
public void setMaxConcurrentInstances(int maxConcurrentInstances) - Specified by:
setMaxConcurrentInstances
in interfaceElasticConfiguration
-
isEnabled
public boolean isEnabled()Whether or not Elastic Bamboo is enabled or not.- Specified by:
isEnabled
in interfaceElasticConfiguration
- Returns:
- Whether or not Elastic Bamboo is enabled or not
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfaceElasticConfiguration
-
isAutoShutdownEnabled
public boolean isAutoShutdownEnabled()Description copied from interface:ElasticConfiguration
If automatic shutdown of instances is enabled- Specified by:
isAutoShutdownEnabled
in interfaceElasticConfiguration
- Returns:
- enabled
-
setAutoShutdownEnabled
public void setAutoShutdownEnabled(boolean autoShutdownEnabled) - Specified by:
setAutoShutdownEnabled
in interfaceElasticConfiguration
-
getAutoShutdownDelay
public int getAutoShutdownDelay()- Specified by:
getAutoShutdownDelay
in interfaceElasticConfiguration
- Returns:
- shutdown delay in seconds
-
setAutoShutdownDelay
public void setAutoShutdownDelay(int autoShutdownDelay) - Specified by:
setAutoShutdownDelay
in interfaceElasticConfiguration
-
getAwsPrivateKeyFile
- Specified by:
getAwsPrivateKeyFile
in interfaceElasticConfiguration
- Returns:
- location of the private key file
-
setAwsPrivateKeyFile
- Specified by:
setAwsPrivateKeyFile
in interfaceElasticConfiguration
-
getAwsCertFile
- Specified by:
getAwsCertFile
in interfaceElasticConfiguration
- Returns:
- location of the certificate file
-
setAwsCertFile
- Specified by:
setAwsCertFile
in interfaceElasticConfiguration
-
isUploadingOfAwsAccountDetailsEnabled
public boolean isUploadingOfAwsAccountDetailsEnabled()- Specified by:
isUploadingOfAwsAccountDetailsEnabled
in interfaceElasticConfiguration
- Returns:
- uploading of aws acount info enabled (keys, etc)
-
setUploadingOfAwsAccountDetailsEnabled
public void setUploadingOfAwsAccountDetailsEnabled(boolean uploadingOfAwsAccountDetailsEnabled) - Specified by:
setUploadingOfAwsAccountDetailsEnabled
in interfaceElasticConfiguration
-
getAutomaticInstanceManagementConfig
- Specified by:
getAutomaticInstanceManagementConfig
in interfaceElasticConfiguration
- Returns:
- configuration for the Automatic Instance configuration
-
setAutomaticInstanceManagementConfig
- Specified by:
setAutomaticInstanceManagementConfig
in interfaceElasticConfiguration
-
setPublicIpForVpcEnabled
public void setPublicIpForVpcEnabled(boolean value) - Specified by:
setPublicIpForVpcEnabled
in interfaceElasticConfiguration
-
isPublicIpForVpcEnabled
public boolean isPublicIpForVpcEnabled()- Specified by:
isPublicIpForVpcEnabled
in interfaceElasticConfiguration
-
getShippedElasticImageData
@NotNull public static @NotNull com.atlassian.aws.ec2.configuration.ImageData getShippedElasticImageData() throws IOException- Throws:
IOException
-
getRegion
@NotNull public com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region getRegion()- Specified by:
getRegion
in interfaceElasticConfiguration
-
setRegion
public void setRegion(@NotNull com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region) - Specified by:
setRegion
in interfaceElasticConfiguration
-
getInstallerRunCommand
- Specified by:
getInstallerRunCommand
in interfaceElasticConfiguration
-