org.openspaces.admin.pu.elastic.config
Class AutomaticCapacityScaleConfigurer
java.lang.Object
org.openspaces.admin.pu.elastic.config.AutomaticCapacityScaleConfigurer
- All Implemented Interfaces:
- BeanConfigurer<AutomaticCapacityScaleConfig>, ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
public class AutomaticCapacityScaleConfigurer
- extends Object
- implements ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
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)
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)
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.