com.atlassian.bamboo.agent.elastic.server
Class ElasticConfigurationImpl

java.lang.Object
  extended by com.atlassian.bamboo.agent.elastic.server.ElasticConfigurationImpl
All Implemented Interfaces:
ElasticConfiguration, java.io.Serializable

public class ElasticConfigurationImpl
extends java.lang.Object
implements ElasticConfiguration, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ElasticConfigurationImpl()
           
 
Method Summary
 AutomaticInstanceManagementConfig getAutomaticInstanceManagementConfig()
           
 int getAutoShutdownDelay()
           
 java.lang.String getAwsAccessKeyId()
           
 java.lang.String getAwsCertFile()
           
 java.lang.String getAwsPrivateKeyFile()
           
 java.lang.String getAwsSecretKey()
           
 int getMaxConcurrentInstances()
           
 boolean isAutoShutdownEnabled()
          If automatic shutdown of instances is enabled
 boolean isEnabled()
          Whether or not Elastic Bamboo is enabled or not.
 boolean isUploadingOfAwsAccountDetailsEnabled()
           
 void setAutomaticInstanceManagementConfig(AutomaticInstanceManagementConfig config)
           
 void setAutoShutdownDelay(int autoShutdownDelay)
           
 void setAutoShutdownEnabled(boolean autoShutdownEnabled)
           
 void setAwsAccessKeyId(java.lang.String awsAccessKeyId)
           
 void setAwsCertFile(java.lang.String awsCertFile)
           
 void setAwsPrivateKeyFile(java.lang.String awsPrivateKeyFile)
           
 void setAwsSecretKey(java.lang.String awsSecretKey)
           
 void setEnabled(boolean enabled)
           
 void setMaxConcurrentInstances(int maxConcurrentInstances)
           
 void setUploadingOfAwsAccountDetailsEnabled(boolean uploadingOfAwsAccountDetailsEnabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElasticConfigurationImpl

public ElasticConfigurationImpl()
Method Detail

getAwsAccessKeyId

public java.lang.String getAwsAccessKeyId()
Specified by:
getAwsAccessKeyId in interface ElasticConfiguration
Returns:
AWS Access Key ID

setAwsAccessKeyId

public void setAwsAccessKeyId(java.lang.String awsAccessKeyId)
Specified by:
setAwsAccessKeyId in interface ElasticConfiguration

getAwsSecretKey

public java.lang.String getAwsSecretKey()
Specified by:
getAwsSecretKey in interface ElasticConfiguration
Returns:
Encrypted secret ket for aws account

setAwsSecretKey

public void setAwsSecretKey(java.lang.String awsSecretKey)
Specified by:
setAwsSecretKey in interface ElasticConfiguration

getMaxConcurrentInstances

public int getMaxConcurrentInstances()
Specified by:
getMaxConcurrentInstances in interface ElasticConfiguration
Returns:
Max number of elastic agents that can be running at any time.

setMaxConcurrentInstances

public void setMaxConcurrentInstances(int maxConcurrentInstances)
Specified by:
setMaxConcurrentInstances in interface ElasticConfiguration

isEnabled

public boolean isEnabled()
Whether or not Elastic Bamboo is enabled or not.

Specified by:
isEnabled in interface ElasticConfiguration
Returns:
Whether or not Elastic Bamboo is enabled or not

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface ElasticConfiguration

isAutoShutdownEnabled

public boolean isAutoShutdownEnabled()
Description copied from interface: ElasticConfiguration
If automatic shutdown of instances is enabled

Specified by:
isAutoShutdownEnabled in interface ElasticConfiguration
Returns:
enabled

setAutoShutdownEnabled

public void setAutoShutdownEnabled(boolean autoShutdownEnabled)
Specified by:
setAutoShutdownEnabled in interface ElasticConfiguration

getAutoShutdownDelay

public int getAutoShutdownDelay()
Specified by:
getAutoShutdownDelay in interface ElasticConfiguration
Returns:
shutdown delay in seconds

setAutoShutdownDelay

public void setAutoShutdownDelay(int autoShutdownDelay)
Specified by:
setAutoShutdownDelay in interface ElasticConfiguration

getAwsPrivateKeyFile

public java.lang.String getAwsPrivateKeyFile()
Specified by:
getAwsPrivateKeyFile in interface ElasticConfiguration
Returns:
location of the private key file

setAwsPrivateKeyFile

public void setAwsPrivateKeyFile(java.lang.String awsPrivateKeyFile)
Specified by:
setAwsPrivateKeyFile in interface ElasticConfiguration

getAwsCertFile

public java.lang.String getAwsCertFile()
Specified by:
getAwsCertFile in interface ElasticConfiguration
Returns:
location of the certificate file

setAwsCertFile

public void setAwsCertFile(java.lang.String awsCertFile)
Specified by:
setAwsCertFile in interface ElasticConfiguration

isUploadingOfAwsAccountDetailsEnabled

public boolean isUploadingOfAwsAccountDetailsEnabled()
Specified by:
isUploadingOfAwsAccountDetailsEnabled in interface ElasticConfiguration
Returns:
uploading of aws acount info enabled (keys, etc)

setUploadingOfAwsAccountDetailsEnabled

public void setUploadingOfAwsAccountDetailsEnabled(boolean uploadingOfAwsAccountDetailsEnabled)
Specified by:
setUploadingOfAwsAccountDetailsEnabled in interface ElasticConfiguration

getAutomaticInstanceManagementConfig

public AutomaticInstanceManagementConfig getAutomaticInstanceManagementConfig()
Specified by:
getAutomaticInstanceManagementConfig in interface ElasticConfiguration
Returns:
configuration for the Automatic Instance configuration

setAutomaticInstanceManagementConfig

public void setAutomaticInstanceManagementConfig(AutomaticInstanceManagementConfig config)
Specified by:
setAutomaticInstanceManagementConfig in interface ElasticConfiguration


Copyright © 2010 Atlassian. All Rights Reserved.