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
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
 
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(Buildable buildable)
           
 int getAgentCountForImage(long id)
           
 java.lang.String getAmiId()
           
 java.lang.String getAvailabilityZone()
           
 java.util.Map<java.lang.String,com.atlassian.aws.ec2.EC2AvailabilityZone> 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<Buildable> 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()
           
 boolean isEbsCapable()
           
 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 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 setInstanceType(java.lang.String instanceType)
           
 void setMode(java.lang.String mode)
           
 void setProduct(java.lang.String product)
           
 void setStartupScript(java.lang.String startupScript)
           
 void validate()
           
 
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
getSecuredDomainObject
 
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
 
Methods inherited from interface com.atlassian.bamboo.ww2.aware.permissions.DomainObjectSecurityAware
getSecuredDomainObject
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

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