Class ConfigureElasticImageConfiguration
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.bamboo.ww2.BambooActionSupport
-
- com.atlassian.bamboo.configuration.GlobalAdminAction
-
- com.atlassian.bamboo.ww2.actions.admin.elastic.ConfigureElasticImageConfiguration
-
- All Implemented Interfaces:
JsonStreamingAction
,ErrorCollection
,BambooSessionAware
,NavigationAware
,DomainObjectSecurityAware
,GlobalAdminSecurityAware
,GlobalReadSecurityAware
,ReturnUrlAware
,com.atlassian.core.i18n.I18nTextProvider
,com.atlassian.struts.TextProvider
,com.atlassian.struts.ValidationAware
,com.opensymphony.xwork.ValidationAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.Preparable
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class ConfigureElasticImageConfiguration extends GlobalAdminAction implements GlobalAdminSecurityAware, com.opensymphony.xwork2.Preparable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, authenticationContext, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ConfigureElasticImageConfiguration()
-
Method Summary
-
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
getSecuredDomainObject
-
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getErrorMessages, getErrors, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNodeLifecycleState, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getRandomString, getReturnUrl, getSessionUser, getText, getText, 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, hasPlanPermission, hasProjectPermission, hasProjectPermission, hasRestrictedAdminPermission, hasResultKeyReadPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDecorator, setDeploymentProjectService, setDocumentationLinkProvider, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLocalizedTextProvider, setNavigationContext, setNodeLifecycleProvider, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setWebInterfaceManager, streamJson, toJson, toJson
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, 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
getAllErrorMessages
-
-
-
-
Method Detail
-
prepare
public void prepare() throws Exception
- Specified by:
prepare
in interfacecom.opensymphony.xwork2.Preparable
- Throws:
Exception
-
disable
public String disable()
-
enable
public String enable()
-
delete
public String delete()
-
getCapabilitySetDecorator
public CapabilityRequirementSetDecorator getCapabilitySetDecorator()
-
validate
public void validate()
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
-
getElasticImageConfigurations
public List<ElasticImageConfiguration> getElasticImageConfigurations()
-
getAgentCountForImage
public int getAgentCountForImage(long id)
-
getScheduleCountForImage
public int getScheduleCountForImage(ElasticImageConfiguration elasticImageConfiguration)
-
getBuildCountForImage
public int getBuildCountForImage(long id)
-
getAvailableInstanceTypes
public Collection<com.atlassian.aws.ec2.EC2InstanceType> getAvailableInstanceTypes()
-
getCapabilityTypes
public Collection<CapabilityType> getCapabilityTypes()
-
getAvailabilityZones
@NotNull public @NotNull TreeMap<String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()
-
hasPlanPermission
public boolean hasPlanPermission(String permission, PlanIdentifier plan)
- Overrides:
hasPlanPermission
in classBambooActionSupport
-
getExecutableBuildables
@NotNull public @NotNull Collection<ImmutableBuildable> getExecutableBuildables()
-
getDeploymentProject
public DeploymentProject getDeploymentProject(long deploymentProjectId)
-
getSubnetMap
public Map<String,String> getSubnetMap()
- Returns:
- map of Subnet name string as key and subnetId string as value
-
getSubnets
public Collection<String> getSubnets()
-
setSubnets
public void setSubnets(Collection<String> subnetIds)
-
getProducts
public Collection<String> getProducts()
Get information on product names from SpotPriceMatrix- Returns:
- Collection of product names
-
isVpcEnabled
public boolean isVpcEnabled()
-
setVpcEnabled
public void setVpcEnabled(boolean value)
-
getConfigurationId
public long getConfigurationId()
-
setConfigurationId
public void setConfigurationId(long configurationId)
-
getConfiguration
public ElasticImageConfiguration getConfiguration()
-
setConfirmDelete
public void setConfirmDelete(boolean confirmDelete)
-
setConfirmDisable
public void setConfirmDisable(boolean confirmDisable)
-
getConfigurationName
public String getConfigurationName()
-
setConfigurationName
public void setConfigurationName(String configurationName)
-
getConfigurationDescription
public String getConfigurationDescription()
-
setConfigurationDescription
public void setConfigurationDescription(String configurationDescription)
-
getAmiId
public String getAmiId()
-
setAmiId
public void setAmiId(String amiId)
-
getRootFsSizeOverride
public Integer getRootFsSizeOverride()
-
setRootFsSizeOverride
public void setRootFsSizeOverride(Integer rootFsSizeOverride)
-
isEbsEnabled
public boolean isEbsEnabled()
-
setEbsEnabled
public void setEbsEnabled(boolean ebsEnabled)
-
isPerSecondBillingEnabled
public boolean isPerSecondBillingEnabled()
-
setPerSecondBillingEnabled
public void setPerSecondBillingEnabled(boolean value)
-
getEbsSnapshotId
public String getEbsSnapshotId()
-
setEbsSnapshotId
public void setEbsSnapshotId(String ebsSnapshotId)
-
isLegacyEbsHandlingEnabled
public boolean isLegacyEbsHandlingEnabled()
-
setLegacyEbsHandlingEnabled
public void setLegacyEbsHandlingEnabled(boolean useLegacyEbsHandling)
-
getInstanceTypes
public Collection<String> getInstanceTypes()
-
setInstanceTypes
public void setInstanceTypes(Collection<com.atlassian.aws.ec2.EC2InstanceType> instanceTypes)
-
getAvailabilityZone
public String getAvailabilityZone()
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
-
getStartupScript
public String getStartupScript()
-
setStartupScript
public void setStartupScript(String startupScript)
-
getElasticUIBean
public ElasticUIBean getElasticUIBean()
-
getMode
public String getMode()
-
setMode
public void setMode(String mode)
-
getProduct
public String getProduct()
-
setProduct
public void setProduct(String product)
-
getDefaultAvailabilityZone
public String getDefaultAvailabilityZone()
-
getIamInstanceProfile
public String getIamInstanceProfile()
-
setIamInstanceProfile
public void setIamInstanceProfile(String iamInstanceProfile)
-
isEbsOptimised
public boolean isEbsOptimised()
-
setEbsOptimised
public void setEbsOptimised(boolean value)
-
-