GigaSpaces XAP 9.7.2 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>, ScaleStrategyAgentZonesAwareConfigurer, ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>

public class AutomaticCapacityScaleConfigurer
extends Object
implements ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>, ScaleStrategyAgentZonesAwareConfigurer

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 allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
           
 AutomaticCapacityScaleConfigurer atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
           
 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 enableGridServiceAgentZonesAware()
          By default disabled, which means that the following machines: - Machines started due to failover of another machine
 AutomaticCapacityScaleConfigurer initialCapacity(CapacityRequirementsConfig initialCapacity)
           
 AutomaticCapacityScaleConfigurer maxCapacity(CapacityRequirementsConfig maxCapacity)
           
 AutomaticCapacityScaleConfigurer maxCapacityPerZone(CapacityRequirementsConfig maxCapacityPerZone)
           
 AutomaticCapacityScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
           
 AutomaticCapacityScaleConfigurer minCapacity(CapacityRequirementsConfig minCapacity)
           
 AutomaticCapacityScaleConfigurer minCapacityPerZone(CapacityRequirementsConfig minCapacityPerZone)
           
 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

atMostOneConcurrentRelocation

public AutomaticCapacityScaleConfigurer atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
Specified by:
atMostOneConcurrentRelocation in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
See Also:
(boolean)

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)

allowAboveAverageMemoryPerMachine

public AutomaticCapacityScaleConfigurer allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
Specified by:
allowAboveAverageMemoryPerMachine in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
See Also:
ScaleStrategyConfig.setAllowAboveAverageMemoryPerMachine(boolean)

pollingInterval

public AutomaticCapacityScaleConfigurer pollingInterval(long pollingInterval,
                                                        TimeUnit timeUnit)
Specified by:
pollingInterval in interface ScaleStrategyConfigurer<AutomaticCapacityScaleConfig>
See Also:
ScaleStrategyConfig.setPollingIntervalSeconds(int)

enableGridServiceAgentZonesAware

public AutomaticCapacityScaleConfigurer enableGridServiceAgentZonesAware()
Description copied from interface: ScaleStrategyAgentZonesAwareConfigurer
By default disabled, which means that the following machines: - Machines started due to failover of another machine. - Machines started by AutomaticCapacityScaleRuleConfig sue to threshold breach are started with a Grid Service Agent zones as described in #getGridServiceAgentZones() When enabled, these machines are started with the same ExactZonesConfig as the failed machine, or the same ExactZonesConfig as the machines whose threshold was breached.

Specified by:
enableGridServiceAgentZonesAware in interface ScaleStrategyAgentZonesAwareConfigurer

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)

minCapacityPerZone

public AutomaticCapacityScaleConfigurer minCapacityPerZone(CapacityRequirementsConfig minCapacityPerZone)

maxCapacityPerZone

public AutomaticCapacityScaleConfigurer maxCapacityPerZone(CapacityRequirementsConfig maxCapacityPerZone)

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

Copyright © GigaSpaces.