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 java.lang.Object
implements ElasticUIBean

Bean class for a bunch of helper methods for the UI that dont require any context information st


Constructor Summary
ElasticUIBeanImpl(AgentManager agentManager, AdministrationConfigurationManager administrationConfigurationManager, ElasticInstanceManagerImpl elasticInstanceManager, AwsAccountBean awsAccountBean)
           
 
Method Summary
 int getActiveInstancesCountForConfiguration(ElasticImageConfiguration elasticImageConfiguration)
           
 BuildAgent getAgentById(long agentId)
           
 java.lang.Double getInstancePrice(RemoteElasticInstance instance)
           
 java.lang.String getStateDescription(RemoteElasticInstanceState state)
           
 java.lang.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,
                         AdministrationConfigurationManager administrationConfigurationManager,
                         ElasticInstanceManagerImpl elasticInstanceManager,
                         AwsAccountBean awsAccountBean)
Method Detail

getStateImagePath

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

getStateDescription

public java.lang.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 java.lang.Double getInstancePrice(RemoteElasticInstance instance)
Specified by:
getInstancePrice in interface ElasticUIBean


Copyright © 2011 Atlassian. All Rights Reserved.