Class ElasticUIBeanImpl
- java.lang.Object
-
- com.atlassian.bamboo.ww2.actions.admin.elastic.ElasticUIBeanImpl
-
- All Implemented Interfaces:
ElasticUIBean
public class ElasticUIBeanImpl extends Object implements ElasticUIBean
Bean class for a bunch of helper methods for the UI that don't require any context information st
-
-
Constructor Summary
Constructors Constructor Description ElasticUIBeanImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetActiveInstancesCountForConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration)@Nullable BuildAgentgetAgentById(long agentId)@NotNull Map<String,AutomaticInstanceManagementConfig>getAutoInstanceManagementConfigs()Get a map of key -> AutomaticInstanceManagementConfig.@Nullable DoublegetInstancePrice(RemoteElasticInstance instance)StringgetStateDescription(RemoteElasticInstanceState state)StringgetStateImageIcon(RemoteElasticInstanceState state)
-
-
-
Method Detail
-
getStateImageIcon
public String getStateImageIcon(RemoteElasticInstanceState state)
- Specified by:
getStateImageIconin interfaceElasticUIBean
-
getStateDescription
public String getStateDescription(RemoteElasticInstanceState state)
- Specified by:
getStateDescriptionin interfaceElasticUIBean
-
getAgentById
@Nullable public @Nullable BuildAgent getAgentById(long agentId)
- Specified by:
getAgentByIdin interfaceElasticUIBean
-
getActiveInstancesCountForConfiguration
public int getActiveInstancesCountForConfiguration(@NotNull @NotNull ElasticImageConfiguration elasticImageConfiguration)- Specified by:
getActiveInstancesCountForConfigurationin interfaceElasticUIBean
-
getInstancePrice
@Nullable public @Nullable Double getInstancePrice(RemoteElasticInstance instance) throws com.atlassian.aws.AWSException
- Specified by:
getInstancePricein interfaceElasticUIBean- Throws:
com.atlassian.aws.AWSException
-
getAutoInstanceManagementConfigs
@NotNull public @NotNull Map<String,AutomaticInstanceManagementConfig> getAutoInstanceManagementConfigs()
Description copied from interface:ElasticUIBeanGet a map of key -> AutomaticInstanceManagementConfig. Key is displayable configuration name.- Specified by:
getAutoInstanceManagementConfigsin interfaceElasticUIBean
-
-