org.openspaces.admin.pu.elastic.config
Class AutomaticCapacityScaleConfigurer
java.lang.Object
org.openspaces.admin.pu.elastic.config.AutomaticCapacityScaleConfigurer
- All Implemented Interfaces:
- BeanConfigurer<AutomaticCapacityScaleConfig>, ScaleStrategyAgentZonesAwareConfigurer, ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
public class AutomaticCapacityScaleConfigurer
- extends Object
- implements ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>, ScaleStrategyAgentZonesAwareConfigurer
Provides fluent API for creating a new AutomaticCapacityScaleConfig
object.
- Since:
- 9.0
- Author:
- itaif
- See Also:
AutomaticCapacityScaleConfig
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutomaticCapacityScaleConfigurer
public AutomaticCapacityScaleConfigurer()
- Provides fluent API for creating a new
AutomaticCapacityScaleConfig
object.
maxConcurrentRelocationsPerMachine
public AutomaticCapacityScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
- Specified by:
maxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
- See Also:
ScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)
atMostOneContainerPerMachine
public AutomaticCapacityScaleConfigurer atMostOneContainerPerMachine()
- Specified by:
atMostOneContainerPerMachine
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
- See Also:
ScaleStrategyConfig.setAtMostOneContainerPerMachine(boolean)
pollingInterval
public AutomaticCapacityScaleConfigurer pollingInterval(long pollingInterval,
TimeUnit timeUnit)
- Specified by:
pollingInterval
in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
- See Also:
ScaleStrategyConfig.setPollingIntervalSeconds(int)
enableGridServiceAgentZonesAware
public AutomaticCapacityScaleConfigurer enableGridServiceAgentZonesAware()
- Description copied from interface:
ScaleStrategyAgentZonesAwareConfigurer
- By default disabled, which means that the following machines:
- Machines started due to failover of another machine.
- Machines started by
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.
- Specified by:
enableGridServiceAgentZonesAware
in interface ScaleStrategyAgentZonesAwareConfigurer
cooldownAfterScaleOut
public AutomaticCapacityScaleConfigurer cooldownAfterScaleOut(long cooldown,
TimeUnit timeUnit)
cooldownAfterScaleIn
public AutomaticCapacityScaleConfigurer cooldownAfterScaleIn(long cooldown,
TimeUnit timeUnit)
statisticsPollingInterval
public AutomaticCapacityScaleConfigurer statisticsPollingInterval(long statisticsPollingInterval,
TimeUnit timeUnit)
minCapacity
public AutomaticCapacityScaleConfigurer minCapacity(CapacityRequirementsConfig minCapacity)
initialCapacity
public AutomaticCapacityScaleConfigurer initialCapacity(CapacityRequirementsConfig initialCapacity)
maxCapacity
public AutomaticCapacityScaleConfigurer maxCapacity(CapacityRequirementsConfig maxCapacity)
minCapacityPerZone
public AutomaticCapacityScaleConfigurer minCapacityPerZone(CapacityRequirementsConfig minCapacityPerZone)
maxCapacityPerZone
public AutomaticCapacityScaleConfigurer maxCapacityPerZone(CapacityRequirementsConfig maxCapacityPerZone)
addRule
public AutomaticCapacityScaleConfigurer addRule(AutomaticCapacityScaleRuleConfig rule)
create
public AutomaticCapacityScaleConfig create()
- Description copied from interface:
BeanConfigurer
- Get the fully configured
BeanConfig
object (after all properties have been set).
- Specified by:
create
in interface BeanConfigurer<AutomaticCapacityScaleConfig>
- Returns:
- a fully configured BeanConfig.
Copyright © GigaSpaces.