GigaSpaces XAP 9.0 API

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

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

Constructor Summary
AutomaticCapacityScaleConfigurer()
          Provides fluent API for creating a new AutomaticCapacityScaleConfig object.
 
Method Summary
 AutomaticCapacityScaleConfigurer addRule(AutomaticCapacityScaleRuleConfig rule)
           
 AutomaticCapacityScaleConfigurer atMostOneContainerPerMachine()
           
 AutomaticCapacityScaleConfigurer cooldownAfterScaleIn(long cooldown, TimeUnit timeUnit)
           
 AutomaticCapacityScaleConfigurer cooldownAfterScaleOut(long cooldown, TimeUnit timeUnit)
           
 AutomaticCapacityScaleConfig create()
          Get the fully configured BeanConfig object (after all properties have been set).
 AutomaticCapacityScaleConfigurer initialCapacity(CapacityRequirementsConfig initialCapacity)
           
 AutomaticCapacityScaleConfigurer maxCapacity(CapacityRequirementsConfig maxCapacity)
           
 AutomaticCapacityScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
           
 AutomaticCapacityScaleConfigurer minCapacity(CapacityRequirementsConfig minCapacity)
           
 AutomaticCapacityScaleConfigurer pollingInterval(long pollingInterval, TimeUnit timeUnit)
           
 AutomaticCapacityScaleConfigurer statisticsPollingInterval(long statisticsPollingInterval, TimeUnit timeUnit)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticCapacityScaleConfigurer

public AutomaticCapacityScaleConfigurer()
Provides fluent API for creating a new AutomaticCapacityScaleConfig object.

Method Detail

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.

GigaSpaces XAP 9.0 API

Copyright © GigaSpaces.