Class ElasticConfigurationImpl
- java.lang.Object
-
- com.atlassian.bamboo.agent.elastic.server.ElasticConfigurationImpl
-
- All Implemented Interfaces:
ElasticConfiguration
,Serializable
public class ElasticConfigurationImpl extends Object implements ElasticConfiguration, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElasticConfigurationImpl()
-
Method Summary
-
-
-
Method Detail
-
getAwsCredentialsType
public AwsCredentialsType getAwsCredentialsType()
- Specified by:
getAwsCredentialsType
in interfaceElasticConfiguration
- Returns:
- AWS credentials type
-
setAwsCredentialsType
public void setAwsCredentialsType(AwsCredentialsType awsCredentialsType)
- Specified by:
setAwsCredentialsType
in interfaceElasticConfiguration
-
getAwsAccessKeyId
public String getAwsAccessKeyId()
- Specified by:
getAwsAccessKeyId
in interfaceElasticConfiguration
- Returns:
- AWS Access Key ID
-
setAwsAccessKeyId
public void setAwsAccessKeyId(String awsAccessKeyId)
- Specified by:
setAwsAccessKeyId
in interfaceElasticConfiguration
-
getAwsSecretKey
public String getAwsSecretKey()
- Specified by:
getAwsSecretKey
in interfaceElasticConfiguration
- Returns:
- Encrypted secret ket for aws account
-
setAwsSecretKey
public void setAwsSecretKey(String awsSecretKey)
- 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
public String getAwsPrivateKeyFile()
- Specified by:
getAwsPrivateKeyFile
in interfaceElasticConfiguration
- Returns:
- location of the private key file
-
setAwsPrivateKeyFile
public void setAwsPrivateKeyFile(String awsPrivateKeyFile)
- Specified by:
setAwsPrivateKeyFile
in interfaceElasticConfiguration
-
getAwsCertFile
public String getAwsCertFile()
- Specified by:
getAwsCertFile
in interfaceElasticConfiguration
- Returns:
- location of the certificate file
-
setAwsCertFile
public void setAwsCertFile(String awsCertFile)
- 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
public AutomaticInstanceManagementConfig getAutomaticInstanceManagementConfig()
- Specified by:
getAutomaticInstanceManagementConfig
in interfaceElasticConfiguration
- Returns:
- configuration for the Automatic Instance configuration
-
setAutomaticInstanceManagementConfig
public void setAutomaticInstanceManagementConfig(AutomaticInstanceManagementConfig config)
- 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
@Nullable public @Nullable Iterable<String> getInstallerRunCommand()
- Specified by:
getInstallerRunCommand
in interfaceElasticConfiguration
-
-