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 |
---|---|
@NotNull Collection<RemoteElasticInstance> |
getAgentsToStop()
Returns a collection of currently running elastic agents that should be stopped.
|
@NotNull 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 @NotNull Collection<ElasticImageConfiguration> getImagesToStart()
ElasticRunningInstancesOptimizer
getImagesToStart
in interface ElasticRunningInstancesOptimizer
@NotNull public @NotNull Collection<RemoteElasticInstance> getAgentsToStop()
ElasticRunningInstancesOptimizer
getAgentsToStop
in interface ElasticRunningInstancesOptimizer
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.