com.atlassian.bamboo.ww2.actions.admin.elastic
Class ConfigureElasticImageConfiguration
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.configuration.GlobalAdminAction
com.atlassian.bamboo.ww2.actions.admin.elastic.ConfigureElasticImageConfiguration
- All Implemented Interfaces:
- ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.Preparable, 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 ConfigureElasticImageConfiguration
- extends GlobalAdminAction
- implements GlobalAdminSecurityAware, com.opensymphony.xwork.Preparable
- See Also:
- Serialized Form
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 |
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 |
ConfigureElasticImageConfiguration
public ConfigureElasticImageConfiguration()
prepare
public void prepare()
throws java.lang.Exception
- Specified by:
prepare
in interface com.opensymphony.xwork.Preparable
- Throws:
java.lang.Exception
doCreate
public java.lang.String doCreate()
throws java.lang.Exception
- Throws:
java.lang.Exception
doDisable
public java.lang.String doDisable()
doEnable
public java.lang.String doEnable()
doDelete
public java.lang.String doDelete()
doEdit
public java.lang.String doEdit()
throws java.lang.Exception
- Throws:
java.lang.Exception
doList
public java.lang.String doList()
throws java.lang.Exception
- Throws:
java.lang.Exception
doSave
public java.lang.String doSave()
throws java.lang.Exception
- Throws:
java.lang.Exception
doView
public java.lang.String doView()
throws java.lang.Exception
- Throws:
java.lang.Exception
getCapabilitySetDecorator
public CapabilityRequirementSetDecorator getCapabilitySetDecorator()
validate
public void validate()
- Specified by:
validate
in interface com.opensymphony.xwork.Validateable
- Overrides:
validate
in class com.opensymphony.xwork.ActionSupport
getElasticImageConfigurations
public java.util.List<ElasticImageConfiguration> getElasticImageConfigurations()
getAgentCountForImage
public int getAgentCountForImage(long id)
getScheduleCountForImage
public int getScheduleCountForImage(ElasticImageConfiguration elasticImageConfiguration)
getBuildCountForImage
public int getBuildCountForImage(long id)
findLastBuild
@Nullable
public BuildResultsSummary findLastBuild(Buildable buildable)
getInstanceTypes
public java.util.Collection<com.atlassian.aws.ec2.EC2InstanceType> getInstanceTypes()
getCapabilityTypes
public java.util.Collection<CapabilityType> getCapabilityTypes()
isEbsCapable
public boolean isEbsCapable()
getAvailabilityZones
@NotNull
public java.util.Map<java.lang.String,com.atlassian.aws.ec2.EC2AvailabilityZone> getAvailabilityZones()
getExecutableBuildables
@NotNull
public java.util.Collection<Buildable> getExecutableBuildables()
getProducts
public java.util.Collection<java.lang.String> getProducts()
- Get information on product names from SpotPriceMatrix
- Returns:
- Collection of product names
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 java.lang.String getConfigurationName()
setConfigurationName
public void setConfigurationName(java.lang.String configurationName)
getConfigurationDescription
public java.lang.String getConfigurationDescription()
setConfigurationDescription
public void setConfigurationDescription(java.lang.String configurationDescription)
getAmiId
public java.lang.String getAmiId()
setAmiId
public void setAmiId(java.lang.String amiId)
isEbsEnabled
public boolean isEbsEnabled()
setEbsEnabled
public void setEbsEnabled(boolean ebsEnabled)
getEbsSnapshotId
public java.lang.String getEbsSnapshotId()
setEbsSnapshotId
public void setEbsSnapshotId(java.lang.String ebsSnapshotId)
getInstanceType
public java.lang.String getInstanceType()
setInstanceType
public void setInstanceType(java.lang.String instanceType)
getAvailabilityZone
public java.lang.String getAvailabilityZone()
setAvailabilityZone
public void setAvailabilityZone(java.lang.String availabilityZone)
getStartupScript
public java.lang.String getStartupScript()
setStartupScript
public void setStartupScript(java.lang.String startupScript)
setElasticInstanceManager
public void setElasticInstanceManager(ElasticInstanceManager elasticInstanceManager)
setElasticImageConfigurationManager
public void setElasticImageConfigurationManager(ElasticImageConfigurationManager elasticImageConfigurationManager)
setCapabilityHelper
public void setCapabilityHelper(CapabilityHelper capabilityHelper)
setElasticAgentManager
public void setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)
setElasticUIBean
public void setElasticUIBean(ElasticUIBean elasticUIBean)
getElasticUIBean
public ElasticUIBean getElasticUIBean()
setBuildResultsSummaryManager
public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
getMode
public java.lang.String getMode()
setMode
public void setMode(java.lang.String mode)
getProduct
public java.lang.String getProduct()
setProduct
public void setProduct(java.lang.String product)
getDefaultAvailabilityZone
public java.lang.String getDefaultAvailabilityZone()
setElasticAccountBean
public void setElasticAccountBean(ElasticAccountBean elasticAccountBean)
setAwsAccountBean
public void setAwsAccountBean(AwsAccountBean awsAccountBean)
setElasticInstanceScheduleManager
public void setElasticInstanceScheduleManager(ElasticInstanceScheduleManager elasticInstanceScheduleManager)
setCapabilitySetManager
public void setCapabilitySetManager(@NotNull
CapabilitySetManager capabilitySetManager)
Copyright © 2012 Atlassian. All Rights Reserved.