GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.elastic.config
Class EagerScaleConfigurer

java.lang.Object
  extended by 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

Constructor Summary
EagerScaleConfigurer()
          Provides fluent API for creating a new EagerScaleConfig object.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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

Method Detail

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.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.