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

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.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

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, 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
ConfigureElasticImageConfiguration()
           
 
Method Summary
 java.lang.String doCreate()
           
 java.lang.String doDelete()
           
 java.lang.String doDisable()
           
 java.lang.String doEdit()
           
 java.lang.String doEnable()
           
 java.lang.String doList()
           
 java.lang.String doSave()
           
 java.lang.String doView()
           
 BuildResultsSummary findLastBuild(ImmutableBuildable buildable)
           
 int getAgentCountForImage(long id)
           
 java.lang.String getAmiId()
           
 java.lang.String getAvailabilityZone()
           
 java.util.TreeMap<java.lang.String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()
           
 int getBuildCountForImage(long id)
           
 CapabilityRequirementSetDecorator getCapabilitySetDecorator()
           
 java.util.Collection<CapabilityType> getCapabilityTypes()
           
 ElasticImageConfiguration getConfiguration()
           
 java.lang.String getConfigurationDescription()
           
 long getConfigurationId()
           
 java.lang.String getConfigurationName()
           
 java.lang.String getDefaultAvailabilityZone()
           
 java.lang.String getEbsSnapshotId()
           
 java.util.List<ElasticImageConfiguration> getElasticImageConfigurations()
           
 ElasticUIBean getElasticUIBean()
           
 java.util.Collection<ImmutableBuildable> getExecutableBuildables()
           
 java.lang.String getInstanceType()
           
 java.util.Collection<com.atlassian.aws.ec2.EC2InstanceType> getInstanceTypes()
           
 java.lang.String getMode()
           
 java.lang.String getProduct()
           
 java.util.Collection<java.lang.String> getProducts()
          Get information on product names from SpotPriceMatrix
 int getScheduleCountForImage(ElasticImageConfiguration elasticImageConfiguration)
           
 java.lang.String getStartupScript()
           
 java.lang.String getVpc()
           
 java.util.Map<java.lang.String,java.lang.String> getVpcs()
           
 boolean hasPlanPermission(java.lang.String permission, PlanIdentifier plan)
           
 boolean isEbsEnabled()
           
 void prepare()
           
 void setAmiId(java.lang.String amiId)
           
 void setAvailabilityZone(java.lang.String availabilityZone)
           
 void setAwsAccountBean(AwsAccountBean awsAccountBean)
           
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
           
 void setCachingPermissionManagerFacade(BambooCachingPermissionManagerFacade cachingPermissionManagerFacade)
           
 void setCapabilityHelper(CapabilityHelper capabilityHelper)
           
 void setCapabilitySetManager(CapabilitySetManager capabilitySetManager)
           
 void setConfigurationDescription(java.lang.String configurationDescription)
           
 void setConfigurationId(long configurationId)
           
 void setConfigurationName(java.lang.String configurationName)
           
 void setConfirmDelete(boolean confirmDelete)
           
 void setConfirmDisable(boolean confirmDisable)
           
 void setEbsEnabled(boolean ebsEnabled)
           
 void setEbsSnapshotId(java.lang.String ebsSnapshotId)
           
 void setElasticAccountBean(ElasticAccountBean elasticAccountBean)
           
 void setElasticAgentManager(ElasticInstanceManager elasticInstanceManager)
           
 void setElasticImageConfigurationManager(ElasticImageConfigurationManager elasticImageConfigurationManager)
           
 void setElasticInstanceManager(ElasticInstanceManager elasticInstanceManager)
           
 void setElasticInstanceScheduleManager(ElasticInstanceScheduleManager elasticInstanceScheduleManager)
           
 void setElasticUIBean(ElasticUIBean elasticUIBean)
           
 void setExecutableAgentsHelper(ExecutableAgentsHelper executableAgentsHelper)
           
 void setInstanceType(java.lang.String instanceType)
           
 void setMode(java.lang.String mode)
           
 void setProduct(java.lang.String product)
           
 void setStartupScript(java.lang.String startupScript)
           
 void setVpc(java.lang.String subnetId)
           
 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, getElasticConfig, 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, 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

ConfigureElasticImageConfiguration

public ConfigureElasticImageConfiguration()
Method Detail

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

getInstanceTypes

public java.util.Collection<com.atlassian.aws.ec2.EC2InstanceType> getInstanceTypes()

getCapabilityTypes

public java.util.Collection<CapabilityType> getCapabilityTypes()

getAvailabilityZones

@NotNull
public java.util.TreeMap<java.lang.String,com.amazonaws.services.ec2.model.AvailabilityZone> getAvailabilityZones()

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 PlanIdentifier plan)
Overrides:
hasPlanPermission in class BambooActionSupport

getExecutableBuildables

@NotNull
public java.util.Collection<ImmutableBuildable> getExecutableBuildables()

getVpcs

public java.util.Map<java.lang.String,java.lang.String> getVpcs()

getVpc

public java.lang.String getVpc()

setVpc

public void setVpc(java.lang.String subnetId)

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)

setCachingPermissionManagerFacade

public void setCachingPermissionManagerFacade(BambooCachingPermissionManagerFacade cachingPermissionManagerFacade)

setExecutableAgentsHelper

public void setExecutableAgentsHelper(ExecutableAgentsHelper executableAgentsHelper)


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