org.openspaces.admin.pu.elastic.config
Class EagerScaleConfigurer
java.lang.Object
org.openspaces.admin.pu.elastic.config.EagerScaleConfigurer
- All Implemented Interfaces:
- BeanConfigurer<EagerScaleConfig>, ScaleStrategyConfigurer<EagerScaleConfig>
public class EagerScaleConfigurer
- extends Object
- implements ScaleStrategyConfigurer<EagerScaleConfig>
Provides fluent API for creating a new EagerScaleConfig
object.
For example new EagerScaleStrategyConfigurer().maxNumberOfContainers(10).create()
- Since:
- 8.0
- Author:
- itaif
- See Also:
EagerScaleConfigurer
,
EagerScaleConfig
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EagerScaleConfigurer
public EagerScaleConfigurer()
- Provides fluent API for creating a new
EagerScaleConfig
object.
For example new EagerScaleStrategyConfigurer().maxNumberOfContainers(10).create()
The default constructor wraps an empty EagerScaleConfig
object
atMostOneConcurrentRelocation
public EagerScaleConfigurer atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
- Specified by:
atMostOneConcurrentRelocation
in interface ScaleStrategyConfigurer<EagerScaleConfig>
- See Also:
(boolean)
maxConcurrentRelocationsPerMachine
public EagerScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
- Specified by:
maxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfigurer<EagerScaleConfig>
- See Also:
ScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)
atMostOneContainerPerMachine
public EagerScaleConfigurer atMostOneContainerPerMachine()
- Specified by:
atMostOneContainerPerMachine
in interface ScaleStrategyConfigurer<EagerScaleConfig>
- See Also:
ScaleStrategyConfig.setAtMostOneContainerPerMachine(boolean)
allowAboveAverageMemoryPerMachine
public EagerScaleConfigurer allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
- Specified by:
allowAboveAverageMemoryPerMachine
in interface ScaleStrategyConfigurer<EagerScaleConfig>
- See Also:
ScaleStrategyConfig.setAllowAboveAverageMemoryPerMachine(boolean)
pollingInterval
public EagerScaleConfigurer pollingInterval(long pollingInterval,
TimeUnit timeUnit)
- Specified by:
pollingInterval
in interface ScaleStrategyConfigurer<EagerScaleConfig>
- See Also:
ScaleStrategyConfig.setPollingIntervalSeconds(int)
create
public EagerScaleConfig create()
- Description copied from interface:
BeanConfigurer
- Get the fully configured
BeanConfig
object (after all properties have been set).
- Specified by:
create
in interface BeanConfigurer<EagerScaleConfig>
- Returns:
- a fully configured BeanConfig.
Copyright © GigaSpaces.