org.openspaces.admin.pu.elastic.config
Class ManualCapacityScaleConfigurer
java.lang.Object
org.openspaces.admin.pu.elastic.config.ManualCapacityScaleConfigurer
- All Implemented Interfaces:
- BeanConfigurer<ManualCapacityScaleConfig>, ScaleStrategyConfigurer<ManualCapacityScaleConfig>
public class ManualCapacityScaleConfigurer
- extends Object
- implements ScaleStrategyConfigurer<ManualCapacityScaleConfig>
Provides fluent API for creating a new ManualCapacityScaleConfig
object.
For example new ManualMemoryCapacityScaleStrategyConfigurer().memoryCapacity("1500m").create()
- Since:
- 8.0
- Author:
- itaif
- See Also:
ManualCapacityScaleConfig
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManualCapacityScaleConfigurer
public ManualCapacityScaleConfigurer()
- Provides fluent API for creating a new
ManualCapacityScaleConfig
object.
For example new ManualMemoryCapacityScaleStrategyConfigurer().memoryCapacity("1500m").create()
The default constructor wraps an empty ManualCapacityScaleConfig
object
memoryCapacity
public ManualCapacityScaleConfigurer memoryCapacity(String memory)
- See Also:
ManualCapacityScaleConfig#setMemoryCapacityInMB(int)
memoryCapacity
public ManualCapacityScaleConfigurer memoryCapacity(int memory,
MemoryUnit unit)
- See Also:
ManualCapacityScaleConfig#setMemoryCapacityInMB(int)
numberOfCpuCores
public ManualCapacityScaleConfigurer numberOfCpuCores(double cpuCores)
- See Also:
ManualCapacityScaleConfig.setNumberOfCpuCores(double)
driveCapacity
public ManualCapacityScaleConfigurer driveCapacity(String drive,
int size,
MemoryUnit unit)
- Since:
- 8.0.2
- See Also:
ManualCapacityScaleConfig#setDrivesCapacityInMB(String,long)
driveCapacity
public ManualCapacityScaleConfigurer driveCapacity(String drive,
String size)
- Since:
- 8.0.2
- See Also:
ManualCapacityScaleConfig#setDrivesCapacityInMB(String,long)
maxConcurrentRelocationsPerMachine
public ManualCapacityScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
- Specified by:
maxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>
- See Also:
ManualCapacityScaleConfig.setMaxConcurrentRelocationsPerMachine(int)
atMostOneContainerPerMachine
public ManualCapacityScaleConfigurer atMostOneContainerPerMachine()
- See Also:
ManualCapacityScaleConfig.setAtMostOneContainerPerMachine(boolean)
create
public ManualCapacityScaleConfig create()
- Description copied from interface:
BeanConfigurer
- Get the fully configured
BeanConfig
object (after all properties have been set).
- Specified by:
create
in interface BeanConfigurer<ManualCapacityScaleConfig>
- Returns:
- a fully configured BeanConfig.
Copyright © GigaSpaces.