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 int
getActiveInstancesCountForConfiguration(@NotNull ElasticImageConfiguration elasticImageConfiguration)
@Nullable BuildAgent
getAgentById(long agentId)
@NotNull Map<String,AutomaticInstanceManagementConfig>
getAutoInstanceManagementConfigs()
Get a map of key -> AutomaticInstanceManagementConfig.@Nullable Double
getInstancePrice(RemoteElasticInstance instance)
String
getStateDescription(RemoteElasticInstanceState state)
String
getStateImageIcon(RemoteElasticInstanceState state)
-
-
-
Method Detail
-
getStateImageIcon
public String getStateImageIcon(RemoteElasticInstanceState state)
- Specified by:
getStateImageIcon
in interfaceElasticUIBean
-
getStateDescription
public String getStateDescription(RemoteElasticInstanceState state)
- Specified by:
getStateDescription
in interfaceElasticUIBean
-
getAgentById
@Nullable public @Nullable BuildAgent getAgentById(long agentId)
- Specified by:
getAgentById
in interfaceElasticUIBean
-
getActiveInstancesCountForConfiguration
public int getActiveInstancesCountForConfiguration(@NotNull @NotNull ElasticImageConfiguration elasticImageConfiguration)
- Specified by:
getActiveInstancesCountForConfiguration
in interfaceElasticUIBean
-
getInstancePrice
@Nullable public @Nullable Double getInstancePrice(RemoteElasticInstance instance) throws com.atlassian.aws.AWSException
- Specified by:
getInstancePrice
in interfaceElasticUIBean
- Throws:
com.atlassian.aws.AWSException
-
getAutoInstanceManagementConfigs
@NotNull public @NotNull Map<String,AutomaticInstanceManagementConfig> getAutoInstanceManagementConfigs()
Description copied from interface:ElasticUIBean
Get a map of key -> AutomaticInstanceManagementConfig. Key is displayable configuration name.- Specified by:
getAutoInstanceManagementConfigs
in interfaceElasticUIBean
-
-