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:
getAwsCredentialsTypein interfaceElasticConfiguration- Returns:
- AWS credentials type
-
setAwsCredentialsType
public void setAwsCredentialsType(AwsCredentialsType awsCredentialsType)
- Specified by:
setAwsCredentialsTypein interfaceElasticConfiguration
-
getAwsAccessKeyId
public String getAwsAccessKeyId()
- Specified by:
getAwsAccessKeyIdin interfaceElasticConfiguration- Returns:
- AWS Access Key ID
-
setAwsAccessKeyId
public void setAwsAccessKeyId(String awsAccessKeyId)
- Specified by:
setAwsAccessKeyIdin interfaceElasticConfiguration
-
getAwsSecretKey
public String getAwsSecretKey()
- Specified by:
getAwsSecretKeyin interfaceElasticConfiguration- Returns:
- Encrypted secret ket for aws account
-
setAwsSecretKey
public void setAwsSecretKey(String awsSecretKey)
- Specified by:
setAwsSecretKeyin interfaceElasticConfiguration
-
getMaxConcurrentInstances
public int getMaxConcurrentInstances()
- Specified by:
getMaxConcurrentInstancesin interfaceElasticConfiguration- Returns:
- Max number of elastic agents that can be running at any time.
-
setMaxConcurrentInstances
public void setMaxConcurrentInstances(int maxConcurrentInstances)
- Specified by:
setMaxConcurrentInstancesin interfaceElasticConfiguration
-
isEnabled
public boolean isEnabled()
Whether or not Elastic Bamboo is enabled or not.- Specified by:
isEnabledin interfaceElasticConfiguration- Returns:
- Whether or not Elastic Bamboo is enabled or not
-
setEnabled
public void setEnabled(boolean enabled)
- Specified by:
setEnabledin interfaceElasticConfiguration
-
isAutoShutdownEnabled
public boolean isAutoShutdownEnabled()
Description copied from interface:ElasticConfigurationIf automatic shutdown of instances is enabled- Specified by:
isAutoShutdownEnabledin interfaceElasticConfiguration- Returns:
- enabled
-
setAutoShutdownEnabled
public void setAutoShutdownEnabled(boolean autoShutdownEnabled)
- Specified by:
setAutoShutdownEnabledin interfaceElasticConfiguration
-
getAutoShutdownDelay
public int getAutoShutdownDelay()
- Specified by:
getAutoShutdownDelayin interfaceElasticConfiguration- Returns:
- shutdown delay in seconds
-
setAutoShutdownDelay
public void setAutoShutdownDelay(int autoShutdownDelay)
- Specified by:
setAutoShutdownDelayin interfaceElasticConfiguration
-
getAwsPrivateKeyFile
public String getAwsPrivateKeyFile()
- Specified by:
getAwsPrivateKeyFilein interfaceElasticConfiguration- Returns:
- location of the private key file
-
setAwsPrivateKeyFile
public void setAwsPrivateKeyFile(String awsPrivateKeyFile)
- Specified by:
setAwsPrivateKeyFilein interfaceElasticConfiguration
-
getAwsCertFile
public String getAwsCertFile()
- Specified by:
getAwsCertFilein interfaceElasticConfiguration- Returns:
- location of the certificate file
-
setAwsCertFile
public void setAwsCertFile(String awsCertFile)
- Specified by:
setAwsCertFilein interfaceElasticConfiguration
-
isUploadingOfAwsAccountDetailsEnabled
public boolean isUploadingOfAwsAccountDetailsEnabled()
- Specified by:
isUploadingOfAwsAccountDetailsEnabledin interfaceElasticConfiguration- Returns:
- uploading of aws acount info enabled (keys, etc)
-
setUploadingOfAwsAccountDetailsEnabled
public void setUploadingOfAwsAccountDetailsEnabled(boolean uploadingOfAwsAccountDetailsEnabled)
- Specified by:
setUploadingOfAwsAccountDetailsEnabledin interfaceElasticConfiguration
-
getAutomaticInstanceManagementConfig
public AutomaticInstanceManagementConfig getAutomaticInstanceManagementConfig()
- Specified by:
getAutomaticInstanceManagementConfigin interfaceElasticConfiguration- Returns:
- configuration for the Automatic Instance configuration
-
setAutomaticInstanceManagementConfig
public void setAutomaticInstanceManagementConfig(AutomaticInstanceManagementConfig config)
- Specified by:
setAutomaticInstanceManagementConfigin interfaceElasticConfiguration
-
setPublicIpForVpcEnabled
public void setPublicIpForVpcEnabled(boolean value)
- Specified by:
setPublicIpForVpcEnabledin interfaceElasticConfiguration
-
isPublicIpForVpcEnabled
public boolean isPublicIpForVpcEnabled()
- Specified by:
isPublicIpForVpcEnabledin 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:
getRegionin interfaceElasticConfiguration
-
setRegion
public void setRegion(@NotNull com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region region)- Specified by:
setRegionin interfaceElasticConfiguration
-
getInstallerRunCommand
@Nullable public @Nullable Iterable<String> getInstallerRunCommand()
- Specified by:
getInstallerRunCommandin interfaceElasticConfiguration
-
-