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:
  • Constructor Details

    • ConfigureElasticImageConfiguration

      public ConfigureElasticImageConfiguration()
  • Method Details

    • prepare

      public void prepare() throws Exception
      Specified by:
      prepare in interface com.opensymphony.xwork2.Preparable
      Throws:
      Exception
    • create

      public String create() throws Exception
      Throws:
      Exception
    • disable

      public String disable()
    • enable

      public String enable()
    • delete

      public String delete()
    • edit

      public String edit() throws Exception
      Throws:
      Exception
    • list

      public String list() throws Exception
      Throws:
      Exception
    • save

      public String save() throws Exception
      Throws:
      Exception
    • view

      public String view() throws Exception
      Throws:
      Exception
    • getCapabilitySetDecorator

      public CapabilityRequirementSetDecorator getCapabilitySetDecorator()
    • validate

      public void validate()
      Specified by:
      validate in interface com.opensymphony.xwork2.Validateable
      Overrides:
      validate in class com.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 class BambooActionSupport
    • 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)