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:
-
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
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
delete()
disable()
edit()
enable()
int
getAgentCountForImage
(long id) getAmiId()
Collection<com.atlassian.aws.ec2.EC2InstanceType>
int
getBuildCountForImage
(long id) long
getDeploymentProject
(long deploymentProjectId) @NotNull Collection<ImmutableBuildable>
getMode()
Get information on product names from SpotPriceMatrixint
getScheduleCountForImage
(ElasticImageConfiguration elasticImageConfiguration) boolean
hasPlanPermission
(String permission, PlanIdentifier plan) boolean
boolean
boolean
boolean
boolean
list()
void
prepare()
save()
void
void
setAvailabilityZone
(String availabilityZone) void
setConfigurationDescription
(String configurationDescription) void
setConfigurationId
(long configurationId) void
setConfigurationName
(String configurationName) void
setConfirmDelete
(boolean confirmDelete) void
setConfirmDisable
(boolean confirmDisable) void
setEbsEnabled
(boolean ebsEnabled) void
setEbsOptimised
(boolean value) void
setEbsSnapshotId
(String ebsSnapshotId) void
setIamInstanceProfile
(String iamInstanceProfile) void
setInstanceTypes
(Collection<com.atlassian.aws.ec2.EC2InstanceType> instanceTypes) void
setLegacyEbsHandlingEnabled
(boolean useLegacyEbsHandling) void
void
setPerSecondBillingEnabled
(boolean value) void
setProduct
(String product) void
setRootFsSizeOverride
(Integer rootFsSizeOverride) void
setStartupScript
(String startupScript) void
setSubnets
(Collection<String> subnetIds) void
setVpcEnabled
(boolean value) void
validate()
view()
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, canRunBuild, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getAvailableCategoryJson, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildExecutionStrategyOptions, 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
Methods inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Constructor Details
-
ConfigureElasticImageConfiguration
public ConfigureElasticImageConfiguration()
-
-
Method Details
-
prepare
- Specified by:
prepare
in interfacecom.opensymphony.xwork2.Preparable
- Throws:
Exception
-
create
- Throws:
Exception
-
disable
-
enable
-
delete
-
edit
- Throws:
Exception
-
list
- Throws:
Exception
-
save
- Throws:
Exception
-
view
- Throws:
Exception
-
getCapabilitySetDecorator
-
validate
public void validate()- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
-
getElasticImageConfigurations
-
getAgentCountForImage
public int getAgentCountForImage(long id) -
getScheduleCountForImage
-
getBuildCountForImage
public int getBuildCountForImage(long id) -
getAvailableInstanceTypes
-
getCapabilityTypes
-
getAvailabilityZones
-
hasPlanPermission
- Overrides:
hasPlanPermission
in classBambooActionSupport
-
getExecutableBuildables
-
getDeploymentProject
-
getSubnetMap
- Returns:
- map of Subnet name string as key and subnetId string as value
-
getSubnets
-
setSubnets
-
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
-
setConfirmDelete
public void setConfirmDelete(boolean confirmDelete) -
setConfirmDisable
public void setConfirmDisable(boolean confirmDisable) -
getConfigurationName
-
setConfigurationName
-
getConfigurationDescription
-
setConfigurationDescription
-
getAmiId
-
setAmiId
-
getRootFsSizeOverride
-
setRootFsSizeOverride
-
isEbsEnabled
public boolean isEbsEnabled() -
setEbsEnabled
public void setEbsEnabled(boolean ebsEnabled) -
isPerSecondBillingEnabled
public boolean isPerSecondBillingEnabled() -
setPerSecondBillingEnabled
public void setPerSecondBillingEnabled(boolean value) -
getEbsSnapshotId
-
setEbsSnapshotId
-
isLegacyEbsHandlingEnabled
public boolean isLegacyEbsHandlingEnabled() -
setLegacyEbsHandlingEnabled
public void setLegacyEbsHandlingEnabled(boolean useLegacyEbsHandling) -
getInstanceTypes
-
setInstanceTypes
-
getAvailabilityZone
-
setAvailabilityZone
-
getStartupScript
-
setStartupScript
-
getElasticUIBean
-
getMode
-
setMode
-
getProduct
-
setProduct
-
getDefaultAvailabilityZone
-
getIamInstanceProfile
-
setIamInstanceProfile
-
isEbsOptimised
public boolean isEbsOptimised() -
setEbsOptimised
public void setEbsOptimised(boolean value)
-