public class AutomaticCapacityScaleConfigurer extends Object implements ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>, ScaleStrategyAgentZonesAwareConfigurer
AutomaticCapacityScaleConfig
object.AutomaticCapacityScaleConfig
Constructor and Description |
---|
AutomaticCapacityScaleConfigurer()
Provides fluent API for creating a new
AutomaticCapacityScaleConfig object. |
public AutomaticCapacityScaleConfigurer()
AutomaticCapacityScaleConfig
object.public AutomaticCapacityScaleConfigurer atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
atMostOneConcurrentRelocation
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
(boolean)
public AutomaticCapacityScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
maxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
ScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)
public AutomaticCapacityScaleConfigurer atMostOneContainerPerMachine()
atMostOneContainerPerMachine
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
ScaleStrategyConfig.setAtMostOneContainerPerMachine(boolean)
public AutomaticCapacityScaleConfigurer allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
allowAboveAverageMemoryPerMachine
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
ScaleStrategyConfig.setAllowAboveAverageMemoryPerMachine(boolean)
public AutomaticCapacityScaleConfigurer pollingInterval(long pollingInterval, TimeUnit timeUnit)
pollingInterval
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
ScaleStrategyConfig.setPollingIntervalSeconds(int)
public AutomaticCapacityScaleConfigurer enableGridServiceAgentZonesAware()
ScaleStrategyAgentZonesAwareConfigurer
AutomaticCapacityScaleRuleConfig
sue to threshold breach
are started with a Grid Service Agent zones as described in #getGridServiceAgentZones()
When enabled, these machines are started with the same ExactZonesConfig
as the failed machine,
or the same ExactZonesConfig
as the machines whose threshold was breached.enableGridServiceAgentZonesAware
in interface ScaleStrategyAgentZonesAwareConfigurer
public AutomaticCapacityScaleConfigurer cooldownAfterScaleOut(long cooldown, TimeUnit timeUnit)
public AutomaticCapacityScaleConfigurer cooldownAfterScaleIn(long cooldown, TimeUnit timeUnit)
public AutomaticCapacityScaleConfigurer statisticsPollingInterval(long statisticsPollingInterval, TimeUnit timeUnit)
public AutomaticCapacityScaleConfigurer minCapacity(CapacityRequirementsConfig minCapacity)
public AutomaticCapacityScaleConfigurer initialCapacity(CapacityRequirementsConfig initialCapacity)
public AutomaticCapacityScaleConfigurer maxCapacity(CapacityRequirementsConfig maxCapacity)
public AutomaticCapacityScaleConfigurer minCapacityPerZone(CapacityRequirementsConfig minCapacityPerZone)
public AutomaticCapacityScaleConfigurer maxCapacityPerZone(CapacityRequirementsConfig maxCapacityPerZone)
public AutomaticCapacityScaleConfigurer addRule(AutomaticCapacityScaleRuleConfig rule)
public AutomaticCapacityScaleConfig create()
BeanConfigurer
BeanConfig
object (after all properties have been set).create
in interface BeanConfigurer<AutomaticCapacityScaleConfig>
Copyright © GigaSpaces.