public class ElasticRunningInstancesOptimizerImpl extends Object implements ElasticRunningInstancesOptimizer
Constructor and Description |
---|
ElasticRunningInstancesOptimizerImpl(BuildQueueManager buildQueueManager,
AgentManager agentManager,
CachedPlanManager cachedPlanManager,
ElasticInstanceManager elasticInstanceManager,
ElasticAccountBean elasticAccountBean,
BuildExecutionManager buildExecutionManager,
BambooLicenseManager bambooLicenseManager,
ResultsSummaryManager resultsSummaryManager,
AdministrationConfigurationAccessor administrationConfigurationAccessor,
com.opensymphony.xwork2.TextProvider textProvider,
AwsAccountBean awsAccountBean,
ExecutableAgentsHelper executableAgentsHelper,
EnvironmentService environmentService,
DeploymentResultService deploymentResultService) |
Modifier and Type | Method and Description |
---|---|
Collection<RemoteElasticInstance> |
getAgentsToStop()
Returns a collection of currently running elastic agents that should be stopped.
|
Collection<ElasticImageConfiguration> |
getImagesToStart()
Which and how many elastic images should be started.
|
public ElasticRunningInstancesOptimizerImpl(BuildQueueManager buildQueueManager, AgentManager agentManager, CachedPlanManager cachedPlanManager, ElasticInstanceManager elasticInstanceManager, ElasticAccountBean elasticAccountBean, BuildExecutionManager buildExecutionManager, BambooLicenseManager bambooLicenseManager, ResultsSummaryManager resultsSummaryManager, AdministrationConfigurationAccessor administrationConfigurationAccessor, com.opensymphony.xwork2.TextProvider textProvider, AwsAccountBean awsAccountBean, ExecutableAgentsHelper executableAgentsHelper, EnvironmentService environmentService, DeploymentResultService deploymentResultService)
@NotNull public Collection<ElasticImageConfiguration> getImagesToStart()
ElasticRunningInstancesOptimizer
getImagesToStart
in interface ElasticRunningInstancesOptimizer
@NotNull public Collection<RemoteElasticInstance> getAgentsToStop()
ElasticRunningInstancesOptimizer
getAgentsToStop
in interface ElasticRunningInstancesOptimizer
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.