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
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, deploymentProjectService, environmentService, featureManager, 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 doAgree()
           
 java.lang.String doConfirmDisable()
           
 java.lang.String doDisable()
           
 java.lang.String doDisagree()
           
 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()
           
 com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region[] getAvailableRegions()
           
 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()
           
 java.lang.Iterable<java.lang.String> getIgnoredEips()
           
 java.lang.String getIgnoredEipsString()
           
 com.atlassian.aws.ec2.EC2InstanceType[] getInstanceTypes()
           
 java.util.List<ConfigureElasticCloudAction.KeyProvisioningMethod> getKeyProvideMethods()
           
 java.lang.String getRegion()
           
 int getRequestedElasticInstancesCount()
           
 int getRunningElasticInstancesCount()
           
 java.lang.String getSendTest()
           
 boolean isElasticIpManagementEnabled()
           
 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 setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setElasticAccountBean(ElasticAccountBean elasticAccountBean)
           
 void setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)
           
 void setElasticConfig(ElasticConfiguration elasticConfig)
           
 void setElasticConfigureKeysMethod(java.lang.String elasticConfigureKeysMethod)
           
 void setElasticFunctionalityFacade(ElasticFunctionalityFacade elasticFunctionalityFacade)
           
 void setElasticIpManagementEnabled(boolean elasticIpManagementEnabled)
           
 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 setIgnoredEipsString(java.lang.String ignoredEips)
           
 void setRegion(java.lang.String region)
           
 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, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getHelpPanels, 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, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setDeploymentProjectService, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, 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
 

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

doAgree

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

doDisagree

public java.lang.String doDisagree()
                            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()

getRegion

public java.lang.String getRegion()

setRegion

public void setRegion(@NotNull
                      java.lang.String region)

getAvailableRegions

@NotNull
public com.atlassian.aws.ec2.awssdk.AwsSupportConstants.Region[] getAvailableRegions()

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()
Overrides:
getElasticConfig in class BambooActionSupport

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()

getIgnoredEips

@Nullable
public java.lang.Iterable<java.lang.String> getIgnoredEips()

getIgnoredEipsString

public java.lang.String getIgnoredEipsString()

setIgnoredEipsString

public void setIgnoredEipsString(java.lang.String ignoredEips)

isElasticIpManagementEnabled

public boolean isElasticIpManagementEnabled()

setElasticIpManagementEnabled

public void setElasticIpManagementEnabled(boolean elasticIpManagementEnabled)

setAwsAccountBean

public void setAwsAccountBean(AwsAccountBean awsAccountBean)

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.