public class EagerScaleConfigurer extends Object implements ScaleStrategyConfigurer<EagerScaleConfig>
EagerScaleConfig object.
For example new EagerScaleStrategyConfigurer().maxNumberOfContainers(10).create()EagerScaleConfigurer,
EagerScaleConfig| Constructor and Description |
|---|
EagerScaleConfigurer()
Provides fluent API for creating a new
EagerScaleConfig object. |
| Modifier and Type | Method and Description |
|---|---|
EagerScaleConfigurer |
allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine) |
EagerScaleConfigurer |
atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation) |
EagerScaleConfigurer |
atMostOneContainerPerMachine() |
EagerScaleConfig |
create()
Get the fully configured
BeanConfig object (after all properties have been set). |
EagerScaleConfigurer |
maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine) |
EagerScaleConfigurer |
pollingInterval(long pollingInterval,
TimeUnit timeUnit) |
public EagerScaleConfigurer()
EagerScaleConfig object. For example new EagerScaleStrategyConfigurer().maxNumberOfContainers(10).create() The default
constructor wraps an empty EagerScaleConfig objectpublic EagerScaleConfigurer atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
atMostOneConcurrentRelocation in interface ScaleStrategyConfigurer<EagerScaleConfig>(boolean)public EagerScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
maxConcurrentRelocationsPerMachine in interface ScaleStrategyConfigurer<EagerScaleConfig>ScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)public EagerScaleConfigurer atMostOneContainerPerMachine()
atMostOneContainerPerMachine in interface ScaleStrategyConfigurer<EagerScaleConfig>ScaleStrategyConfig.setAtMostOneContainerPerMachine(boolean)public EagerScaleConfigurer allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
allowAboveAverageMemoryPerMachine in interface ScaleStrategyConfigurer<EagerScaleConfig>ScaleStrategyConfig.setAllowAboveAverageMemoryPerMachine(boolean)public EagerScaleConfigurer pollingInterval(long pollingInterval, TimeUnit timeUnit)
pollingInterval in interface ScaleStrategyConfigurer<EagerScaleConfig>ScaleStrategyConfig.setPollingIntervalSeconds(int)public EagerScaleConfig create()
BeanConfigurerBeanConfig object (after all properties have been set).create in interface BeanConfigurer<EagerScaleConfig>Copyright © GigaSpaces.