public class ElasticRunningInstancesOptimizerImpl extends Object implements ElasticRunningInstancesOptimizer
Constructor and Description |
---|
ElasticRunningInstancesOptimizerImpl(AdministrationConfigurationAccessor administrationConfigurationAccessor,
AgentResultsSummaryManager agentResultsSummaryManager,
AwsAccountBean awsAccountBean,
BambooLicenseManager bambooLicenseManager,
BuildExecutionManager buildExecutionManager,
BuildQueueManager buildQueueManager,
CachedPlanManager cachedPlanManager,
DeploymentResultService deploymentResultService,
ElasticAccountBean elasticAccountBean,
ElasticInstanceManager elasticInstanceManager,
com.opensymphony.xwork2.TextProvider textProvider) |
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(AdministrationConfigurationAccessor administrationConfigurationAccessor, AgentResultsSummaryManager agentResultsSummaryManager, AwsAccountBean awsAccountBean, BambooLicenseManager bambooLicenseManager, BuildExecutionManager buildExecutionManager, BuildQueueManager buildQueueManager, CachedPlanManager cachedPlanManager, DeploymentResultService deploymentResultService, ElasticAccountBean elasticAccountBean, ElasticInstanceManager elasticInstanceManager, com.opensymphony.xwork2.TextProvider textProvider)
@NotNull public Collection<ElasticImageConfiguration> getImagesToStart()
ElasticRunningInstancesOptimizer
getImagesToStart
in interface ElasticRunningInstancesOptimizer
@NotNull public Collection<RemoteElasticInstance> getAgentsToStop()
ElasticRunningInstancesOptimizer
getAgentsToStop
in interface ElasticRunningInstancesOptimizer
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.