@Deprecated public class ManualCapacityScaleConfigurer extends Object implements ScaleStrategyConfigurer<ManualCapacityScaleConfig>, ScaleStrategyCapacityRequirementConfigurer, ScaleStrategyAgentZonesAwareConfigurer
ManualCapacityScaleConfig
object.
For example new ManualMemoryCapacityScaleStrategyConfigurer().memoryCapacity("1500m").create()
ManualCapacityScaleConfig
Constructor and Description |
---|
ManualCapacityScaleConfigurer()
Deprecated.
Provides fluent API for creating a new
ManualCapacityScaleConfig object. |
Modifier and Type | Method and Description |
---|---|
ManualCapacityScaleConfigurer |
allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
Deprecated.
|
ManualCapacityScaleConfigurer |
atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
Deprecated.
|
ManualCapacityScaleConfigurer |
atMostOneContainerPerMachine()
Deprecated.
|
ManualCapacityScaleConfig |
create()
Deprecated.
Get the fully configured
BeanConfig object (after all properties have been set). |
ManualCapacityScaleConfigurer |
driveCapacity(String drive,
int size,
MemoryUnit unit)
Deprecated.
Specifies the disk and network drive capacity.
|
ManualCapacityScaleConfigurer |
driveCapacity(String drive,
String size)
Deprecated.
Specifies the disk and network drive capacity.
|
ManualCapacityScaleConfigurer |
enableGridServiceAgentZonesAware()
Deprecated.
By default disabled, which means that the following machines: - Machines started due to
failover of another machine.
|
ManualCapacityScaleConfigurer |
maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Deprecated.
|
ManualCapacityScaleConfigurer |
memoryCapacity(int memory,
MemoryUnit unit)
Deprecated.
Specifies the memory capacity (RAM).
|
ManualCapacityScaleConfigurer |
memoryCapacity(String memory)
Deprecated.
Specifies the memory capacity (RAM).
|
ManualCapacityScaleConfigurer |
numberOfCpuCores(double cpuCores)
Deprecated.
Specifies the number of CPU cores (as reported by the operating system) This includes both
real cores and hyper-threaded cores.
|
ManualCapacityScaleConfigurer |
pollingInterval(long pollingInterval,
TimeUnit timeUnit)
Deprecated.
|
public ManualCapacityScaleConfigurer()
ManualCapacityScaleConfig
object. For example
new ManualMemoryCapacityScaleStrategyConfigurer().memoryCapacity("1500m").create()
The default constructor wraps an empty ManualCapacityScaleConfig
objectpublic ManualCapacityScaleConfigurer memoryCapacity(String memory)
ScaleStrategyCapacityRequirementConfigurer
memoryCapacity
in interface ScaleStrategyCapacityRequirementConfigurer
memory
- - the RAM size as a string (For example :50m" or "50g" or "50t") See also
MemoryUnit.getPostfix()
public ManualCapacityScaleConfigurer memoryCapacity(int memory, MemoryUnit unit)
ScaleStrategyCapacityRequirementConfigurer
memoryCapacity
in interface ScaleStrategyCapacityRequirementConfigurer
public ManualCapacityScaleConfigurer numberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfigurer
numberOfCpuCores
in interface ScaleStrategyCapacityRequirementConfigurer
public ManualCapacityScaleConfigurer driveCapacity(String drive, int size, MemoryUnit unit)
ScaleStrategyCapacityRequirementConfigurer
driveCapacity
in interface ScaleStrategyCapacityRequirementConfigurer
drive
- - the file system directory representing the drivesize
- - the drive sizeunit
- - the drive size memory unit.
For example: driveCapacity("/",50,MemoryUnit.MEGABYTES) - the drive "/" (on
linux) has the size of 50*1024MBs driveCapacity("c:\\",50,MemoryUnit.MEGABYTES)
- the drive "c:\" (on windows) has the size of 50*1024MBspublic ManualCapacityScaleConfigurer driveCapacity(String drive, String size)
ScaleStrategyCapacityRequirementConfigurer
driveCapacity
in interface ScaleStrategyCapacityRequirementConfigurer
drive
- - the file system directory representing the drivesize
- - the drive size as a string (For example :50m" or "50g" or "50t") See also
MemoryUnit.getPostfix()
For example: driveCapacity("/","50m") - the drive "/" (on linux) has the size of
50*1024MBs driveCapacity("c:\\","50m") - the drive "c:\" (on windows) has the
size of 50*1024MBspublic ManualCapacityScaleConfigurer maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
maxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>
ScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)
public ManualCapacityScaleConfigurer atMostOneContainerPerMachine()
atMostOneContainerPerMachine
in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>
ScaleStrategyConfig.setAtMostOneContainerPerMachine(boolean)
public ManualCapacityScaleConfigurer allowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
allowAboveAverageMemoryPerMachine
in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>
ScaleStrategyConfig.setAllowAboveAverageMemoryPerMachine(boolean)
public ManualCapacityScaleConfigurer atMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
atMostOneConcurrentRelocation
in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>
(boolean)
public ManualCapacityScaleConfigurer pollingInterval(long pollingInterval, TimeUnit timeUnit)
pollingInterval
in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>
ScaleStrategyConfig.setPollingIntervalSeconds(int)
public ManualCapacityScaleConfigurer enableGridServiceAgentZonesAware()
ScaleStrategyAgentZonesAwareConfigurer
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.enableGridServiceAgentZonesAware
in interface ScaleStrategyAgentZonesAwareConfigurer
public ManualCapacityScaleConfig create()
BeanConfigurer
BeanConfig
object (after all properties have been set).create
in interface BeanConfigurer<ManualCapacityScaleConfig>
Copyright © GigaSpaces.