GigaSpaces XAP 9.5 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 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

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)

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.5 API

Copyright © GigaSpaces.