Class ElasticUIBeanImpl
java.lang.Object
com.atlassian.bamboo.ww2.actions.admin.elastic.ElasticUIBeanImpl
- All Implemented Interfaces:
ElasticUIBean
Bean class for a bunch of helper methods for the UI that don't require any context information st
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getActiveInstancesCountForConfiguration
(@NotNull ElasticImageConfiguration elasticImageConfiguration) @Nullable BuildAgent
getAgentById
(long agentId) @NotNull Map<String,
AutomaticInstanceManagementConfig> Get a map of key -> AutomaticInstanceManagementConfig.@Nullable Double
getInstancePrice
(RemoteElasticInstance instance)
-
Constructor Details
-
ElasticUIBeanImpl
public ElasticUIBeanImpl()
-
-
Method Details
-
getStateImageIcon
- Specified by:
getStateImageIcon
in interfaceElasticUIBean
-
getStateDescription
- Specified by:
getStateDescription
in interfaceElasticUIBean
-
getAgentById
- 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
-