com.atlassian.bamboo.ww2.actions.admin.elastic
Class ConfigureElasticCloudAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.configuration.GlobalAdminAction
              extended by com.atlassian.bamboo.ww2.actions.admin.elastic.ConfigureElasticCloudAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, BypassValidationAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable

public class ConfigureElasticCloudAction
extends GlobalAdminAction
implements GlobalAdminSecurityAware, BypassValidationAware

See Also:
Serialized Form

Nested Class Summary
static class ConfigureElasticCloudAction.AutoElasticConfigPreset
           
static class ConfigureElasticCloudAction.KeyProvisioningMethod
           
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
RESTRICTED_ADMIN_ACCESS_DENIED_ERROR
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, CONFIRM, cookieCutter, dashboardCachingManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ConfigureElasticCloudAction()
           
 
Method Summary
 java.lang.String doConfirmDisable()
           
 java.lang.String doDisable()
           
 java.lang.String doEdit()
           
 java.lang.String doEnable()
           
 java.lang.String doRead()
           
 java.lang.String doSave()
           
 java.lang.String getAutomaticInstanceManagementPreset()
           
 java.util.List<ConfigureElasticCloudAction.AutoElasticConfigPreset> getAutomaticInstanceManagementPresetList()
           
 java.util.Map<java.lang.String,ConfigureElasticCloudAction.AutoElasticConfigPreset> getAutomaticInstanceManagementPresets()
           
 java.lang.String getAwsSecretAccessKeyChange()
           
 java.lang.Double getBid(java.lang.String product, com.amazonaws.services.ec2.model.InstanceType instanceType)
           
 com.atlassian.aws.ec2.SpotPriceMatrix getCurrentSpotPrices()
           
 ElasticConfiguration getElasticConfig()
           
 java.lang.String getElasticConfigureKeysMethod()
           
 java.lang.String getFieldAutoShutdownDelay()
           
 int getFieldAverageTimeInQueueThreshold()
           
 java.lang.String getFieldAwsAccessKeyId()
           
 java.lang.String getFieldAwsCertFile()
           
 java.lang.String getFieldAwsPrivateKeyFile()
           
 java.lang.String getFieldAwsSecretAccessKey()
           
 int getFieldElasticBuildsInQueueThreshold()
           
 int getFieldInstanceIdleTimeThreshold()
           
 int getFieldMaxConcurrentInstances()
           
 int getFieldMaxElasticInstancesToStartAtOnce()
           
 int getFieldMaxNonBambooInstances()
           
 int getFieldSpotInstancesTimeoutMinutes()
           
 int getFieldTotalBuildInQueueThreshold()
           
 com.atlassian.aws.ec2.EC2InstanceType[] getInstanceTypes()
           
 java.util.List<ConfigureElasticCloudAction.KeyProvisioningMethod> getKeyProvideMethods()
           
 int getRequestedElasticInstancesCount()
           
 int getRunningElasticInstancesCount()
           
 java.lang.String getSendTest()
           
 boolean isFieldAutoInstanceManagementEnabled()
           
 boolean isFieldAutoShutdownEnabled()
           
 boolean isFieldSpotInstancesEnabled()
           
 boolean isFieldUploadingOfAwsAccountDetailsEnabled()
           
 boolean isRemoteAgentFunctionEnabled()
           
 boolean isShowHint()
           
 boolean isValidationBypassed()
           
 void setAutomaticInstanceManagementPreset(java.lang.String presetName)
           
 void setAwsAccountBean(AwsAccountBean awsAccountBean)
           
 void setAwsSecretAccessKeyChange(java.lang.String awsSecretAccessKeyChange)
           
 void setElasticAccountBean(ElasticAccountBean elasticAccountBean)
           
 void setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)
           
 void setElasticConfig(ElasticConfiguration elasticConfig)
           
 void setElasticConfigureKeysMethod(java.lang.String elasticConfigureKeysMethod)
           
 void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
           
 void setFieldAutoInstanceManagementEnabled(boolean fieldAutoInstanceManagementEnabled)
           
 void setFieldAutoShutdownDelay(java.lang.String fieldAutoShutdownDelay)
           
 void setFieldAutoShutdownEnabled(boolean fieldAutoShutdownEnabled)
           
 void setFieldAverageTimeInQueueThreshold(int fieldAverageTimeInQueueThreshold)
           
 void setFieldAwsAccessKeyId(java.lang.String fieldAwsAccessKeyId)
           
 void setFieldAwsCertFile(java.lang.String fieldAwsCertFile)
           
 void setFieldAwsPrivateKeyFile(java.lang.String fieldAwsPrivateKeyFile)
           
 void setFieldAwsSecretAccessKey(java.lang.String fieldAwsSecretAccessKey)
           
 void setFieldElasticBuildsInQueueThreshold(int fieldElasticBuildsInQueueThreshold)
           
 void setFieldInstanceIdleTimeThreshold(int fieldInstanceIdleTimeThreshold)
           
 void setFieldMaxConcurrentInstances(int fieldMaxConcurrentInstances)
           
 void setFieldMaxElasticInstancesToStartAtOnce(int fieldMaxElasticInstancesToStartAtOnce)
           
 void setFieldMaxNonBambooInstances(int fieldMaxNonBambooInstances)
           
 void setFieldSpotInstancesEnabled(boolean fieldSpotInstancesEnabled)
           
 void setFieldSpotInstancesTimeoutMinutes(int fieldSpotInstancesTimeoutMinutes)
           
 void setFieldTotalBuildInQueueThreshold(int fieldTotalBuildInQueueThreshold)
           
 void setFieldUploadingOfAwsAccountDetailsEnabled(boolean fieldUploadingOfAwsAccountDetailsEnabled)
           
 void setSendTest(java.lang.String sendTest)
           
 void setShowHint(boolean showHint)
           
 void validate()
           
 
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
getSecuredDomainObject
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Constructor Detail

ConfigureElasticCloudAction

public ConfigureElasticCloudAction()
Method Detail

validate

public void validate()
Specified by:
validate in interface com.opensymphony.xwork.Validateable
Overrides:
validate in class com.opensymphony.xwork.ActionSupport

getAutomaticInstanceManagementPresets

public java.util.Map<java.lang.String,ConfigureElasticCloudAction.AutoElasticConfigPreset> getAutomaticInstanceManagementPresets()

getAutomaticInstanceManagementPresetList

public java.util.List<ConfigureElasticCloudAction.AutoElasticConfigPreset> getAutomaticInstanceManagementPresetList()

setAutomaticInstanceManagementPreset

public void setAutomaticInstanceManagementPreset(java.lang.String presetName)

getAutomaticInstanceManagementPreset

public java.lang.String getAutomaticInstanceManagementPreset()

doRead

public java.lang.String doRead()
                        throws java.lang.Exception
Throws:
java.lang.Exception

doSave

public java.lang.String doSave()
                        throws java.lang.Exception
Throws:
java.lang.Exception

isFieldAutoInstanceManagementEnabled

public boolean isFieldAutoInstanceManagementEnabled()

doEdit

public java.lang.String doEdit()
                        throws java.lang.Exception
Throws:
java.lang.Exception

getKeyProvideMethods

@NotNull
public java.util.List<ConfigureElasticCloudAction.KeyProvisioningMethod> getKeyProvideMethods()

doDisable

public java.lang.String doDisable()
                           throws java.lang.Exception
Throws:
java.lang.Exception

doConfirmDisable

public java.lang.String doConfirmDisable()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

doEnable

public java.lang.String doEnable()
                          throws java.lang.Exception
Throws:
java.lang.Exception

isValidationBypassed

public boolean isValidationBypassed()
Specified by:
isValidationBypassed in interface BypassValidationAware

getElasticConfig

public ElasticConfiguration getElasticConfig()

setElasticConfig

public void setElasticConfig(ElasticConfiguration elasticConfig)

getAwsSecretAccessKeyChange

public java.lang.String getAwsSecretAccessKeyChange()

setAwsSecretAccessKeyChange

public void setAwsSecretAccessKeyChange(java.lang.String awsSecretAccessKeyChange)

setElasticAgentManager

public void setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)

getSendTest

public java.lang.String getSendTest()

setSendTest

public void setSendTest(java.lang.String sendTest)

getFieldAwsSecretAccessKey

public java.lang.String getFieldAwsSecretAccessKey()

setFieldAwsSecretAccessKey

public void setFieldAwsSecretAccessKey(java.lang.String fieldAwsSecretAccessKey)

getFieldAwsAccessKeyId

public java.lang.String getFieldAwsAccessKeyId()

setFieldAwsAccessKeyId

public void setFieldAwsAccessKeyId(java.lang.String fieldAwsAccessKeyId)

getFieldMaxConcurrentInstances

public int getFieldMaxConcurrentInstances()

setFieldMaxConcurrentInstances

public void setFieldMaxConcurrentInstances(int fieldMaxConcurrentInstances)

isFieldAutoShutdownEnabled

public boolean isFieldAutoShutdownEnabled()

setFieldAutoShutdownEnabled

public void setFieldAutoShutdownEnabled(boolean fieldAutoShutdownEnabled)

isFieldSpotInstancesEnabled

public boolean isFieldSpotInstancesEnabled()

setFieldSpotInstancesEnabled

public void setFieldSpotInstancesEnabled(boolean fieldSpotInstancesEnabled)

getFieldSpotInstancesTimeoutMinutes

public int getFieldSpotInstancesTimeoutMinutes()

setFieldSpotInstancesTimeoutMinutes

public void setFieldSpotInstancesTimeoutMinutes(int fieldSpotInstancesTimeoutMinutes)

getBid

@Nullable
public java.lang.Double getBid(java.lang.String product,
                                        com.amazonaws.services.ec2.model.InstanceType instanceType)

getCurrentSpotPrices

public com.atlassian.aws.ec2.SpotPriceMatrix getCurrentSpotPrices()

getInstanceTypes

public com.atlassian.aws.ec2.EC2InstanceType[] getInstanceTypes()

setFieldAutoInstanceManagementEnabled

public void setFieldAutoInstanceManagementEnabled(boolean fieldAutoInstanceManagementEnabled)

getFieldAutoShutdownDelay

public java.lang.String getFieldAutoShutdownDelay()

setFieldAutoShutdownDelay

public void setFieldAutoShutdownDelay(java.lang.String fieldAutoShutdownDelay)

isFieldUploadingOfAwsAccountDetailsEnabled

public boolean isFieldUploadingOfAwsAccountDetailsEnabled()

setFieldUploadingOfAwsAccountDetailsEnabled

public void setFieldUploadingOfAwsAccountDetailsEnabled(boolean fieldUploadingOfAwsAccountDetailsEnabled)

getFieldAwsPrivateKeyFile

public java.lang.String getFieldAwsPrivateKeyFile()

setFieldAwsPrivateKeyFile

public void setFieldAwsPrivateKeyFile(java.lang.String fieldAwsPrivateKeyFile)

getElasticConfigureKeysMethod

public java.lang.String getElasticConfigureKeysMethod()

setElasticConfigureKeysMethod

public void setElasticConfigureKeysMethod(java.lang.String elasticConfigureKeysMethod)

getFieldAwsCertFile

public java.lang.String getFieldAwsCertFile()

setFieldAwsCertFile

public void setFieldAwsCertFile(java.lang.String fieldAwsCertFile)

isRemoteAgentFunctionEnabled

public boolean isRemoteAgentFunctionEnabled()

setElasticFunctionalityFacade

public void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)

isShowHint

public boolean isShowHint()

setShowHint

public void setShowHint(boolean showHint)

setElasticAccountBean

public void setElasticAccountBean(ElasticAccountBean elasticAccountBean)

getFieldAverageTimeInQueueThreshold

public int getFieldAverageTimeInQueueThreshold()

setFieldAverageTimeInQueueThreshold

public void setFieldAverageTimeInQueueThreshold(int fieldAverageTimeInQueueThreshold)

getFieldElasticBuildsInQueueThreshold

public int getFieldElasticBuildsInQueueThreshold()

setFieldElasticBuildsInQueueThreshold

public void setFieldElasticBuildsInQueueThreshold(int fieldElasticBuildsInQueueThreshold)

getFieldTotalBuildInQueueThreshold

public int getFieldTotalBuildInQueueThreshold()

setFieldTotalBuildInQueueThreshold

public void setFieldTotalBuildInQueueThreshold(int fieldTotalBuildInQueueThreshold)

getFieldMaxElasticInstancesToStartAtOnce

public int getFieldMaxElasticInstancesToStartAtOnce()

setFieldMaxElasticInstancesToStartAtOnce

public void setFieldMaxElasticInstancesToStartAtOnce(int fieldMaxElasticInstancesToStartAtOnce)

getFieldMaxNonBambooInstances

public int getFieldMaxNonBambooInstances()

setFieldMaxNonBambooInstances

public void setFieldMaxNonBambooInstances(int fieldMaxNonBambooInstances)

getFieldInstanceIdleTimeThreshold

public int getFieldInstanceIdleTimeThreshold()

setFieldInstanceIdleTimeThreshold

public void setFieldInstanceIdleTimeThreshold(int fieldInstanceIdleTimeThreshold)

getRequestedElasticInstancesCount

public int getRequestedElasticInstancesCount()

getRunningElasticInstancesCount

public int getRunningElasticInstancesCount()

setAwsAccountBean

public void setAwsAccountBean(AwsAccountBean awsAccountBean)


Copyright © 2012 Atlassian. All Rights Reserved.