public interface PoolSizeCalculationStrategy
| Modifier and Type | Method and Description |
|---|---|
Map<PrioritizedRemoteCloudAdapter,Long> |
calculatePoolSizes(Map<PrioritizedRemoteCloudAdapter,MachinePool> currentMachinePools,
com.google.common.collect.ImmutableList<PrioritizedRemoteCloudAdapter> cloudAdapters,
long desiredTotalSize)
Calculates the correct pool sizes for the given cloud adapters.
|
Map<PrioritizedRemoteCloudAdapter,Long> calculatePoolSizes(Map<PrioritizedRemoteCloudAdapter,MachinePool> currentMachinePools, com.google.common.collect.ImmutableList<PrioritizedRemoteCloudAdapter> cloudAdapters, long desiredTotalSize) throws CloudAdapterException
currentMachinePools - The current machine pools, for each adapter.cloudAdapters - The cloud adapters, in the order in which they were
configured, should that matter to the calculation.desiredTotalSize - The desired total pool size.CloudAdapterException - Thrown if there is an error, e.g., while querying current
machine pools from the cloud adapters.Copyright © 2011–2014 elastisys. All rights reserved.