com.atlassian.bamboo.ww2.actions.admin.elastic
Class ElasticUIBeanImpl

java.lang.Object
  extended by 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
ElasticUIBeanImpl(AgentManager agentManager, ElasticInstanceManagerImpl elasticInstanceManager, AwsAccountBean awsAccountBean)
           
 
Method Summary
 int getActiveInstancesCountForConfiguration(ElasticImageConfiguration elasticImageConfiguration)
           
 BuildAgent getAgentById(long agentId)
           
 Double getInstancePrice(RemoteElasticInstance instance)
           
 String getStateDescription(RemoteElasticInstanceState state)
           
 String getStateImagePath(RemoteElasticInstanceState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElasticUIBeanImpl

public ElasticUIBeanImpl(AgentManager agentManager,
                         ElasticInstanceManagerImpl elasticInstanceManager,
                         AwsAccountBean awsAccountBean)
Method Detail

getStateImagePath

public String getStateImagePath(RemoteElasticInstanceState state)
Specified by:
getStateImagePath in interface ElasticUIBean

getStateDescription

public String getStateDescription(RemoteElasticInstanceState state)
Specified by:
getStateDescription in interface ElasticUIBean

getAgentById

@Nullable
public BuildAgent getAgentById(long agentId)
Specified by:
getAgentById in interface ElasticUIBean

getActiveInstancesCountForConfiguration

public int getActiveInstancesCountForConfiguration(ElasticImageConfiguration elasticImageConfiguration)
Specified by:
getActiveInstancesCountForConfiguration in interface ElasticUIBean

getInstancePrice

@Nullable
public Double getInstancePrice(RemoteElasticInstance instance)
                        throws com.atlassian.aws.AWSException
Specified by:
getInstancePrice in interface ElasticUIBean
Throws:
com.atlassian.aws.AWSException


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.