|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.admin.pu.elastic.config.ManualCapacityScaleConfigurer
public class ManualCapacityScaleConfigurer
Provides fluent API for creating a new ManualCapacityScaleConfig object.
For example new ManualMemoryCapacityScaleStrategyConfigurer().memoryCapacity("1500m").create()
ManualCapacityScaleConfig| Constructor Summary | |
|---|---|
ManualCapacityScaleConfigurer()
Provides fluent API for creating a new ManualCapacityScaleConfig object. |
|
| Method Summary | |
|---|---|
ManualCapacityScaleConfigurer |
atMostOneContainerPerMachine()
|
ManualCapacityScaleConfig |
create()
Get the fully configured BeanConfig object (after all properties have been set). |
ManualCapacityScaleConfigurer |
driveCapacity(String drive,
int size,
MemoryUnit unit)
Specifies the disk and network drive capacity. |
ManualCapacityScaleConfigurer |
driveCapacity(String drive,
String size)
Specifies the disk and network drive capacity. |
ManualCapacityScaleConfigurer |
enableGridServiceAgentZonesAware()
By default disabled, which means that the following machines: - Machines started due to failover of another machine |
ManualCapacityScaleConfigurer |
maxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
|
ManualCapacityScaleConfigurer |
memoryCapacity(int memory,
MemoryUnit unit)
Specifies the memory capacity (RAM). |
ManualCapacityScaleConfigurer |
memoryCapacity(String memory)
Specifies the memory capacity (RAM). |
ManualCapacityScaleConfigurer |
numberOfCpuCores(double cpuCores)
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManualCapacityScaleConfigurer()
ManualCapacityScaleConfig object.
For example new ManualMemoryCapacityScaleStrategyConfigurer().memoryCapacity("1500m").create()
The default constructor wraps an empty ManualCapacityScaleConfig object
| Method Detail |
|---|
public ManualCapacityScaleConfigurer memoryCapacity(String memory)
ScaleStrategyCapacityRequirementConfigurer
memoryCapacity in interface ScaleStrategyCapacityRequirementConfigurermemory - - 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 ScaleStrategyCapacityRequirementConfigurerpublic ManualCapacityScaleConfigurer numberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfigurer
numberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigurer
public ManualCapacityScaleConfigurer driveCapacity(String drive,
int size,
MemoryUnit unit)
ScaleStrategyCapacityRequirementConfigurer
driveCapacity in interface ScaleStrategyCapacityRequirementConfigurerdrive - - 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*1024MBs
public ManualCapacityScaleConfigurer driveCapacity(String drive,
String size)
ScaleStrategyCapacityRequirementConfigurer
driveCapacity in interface ScaleStrategyCapacityRequirementConfigurerdrive - - 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 pollingInterval(long pollingInterval,
TimeUnit timeUnit)
pollingInterval in interface ScaleStrategyConfigurer<ManualCapacityScaleConfig>ScaleStrategyConfig.setPollingIntervalSeconds(int)public ManualCapacityScaleConfigurer enableGridServiceAgentZonesAware()
ScaleStrategyAgentZonesAwareConfigurerAutomaticCapacityScaleRuleConfig 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 ScaleStrategyAgentZonesAwareConfigurerpublic ManualCapacityScaleConfig create()
BeanConfigurerBeanConfig object (after all properties have been set).
create in interface BeanConfigurer<ManualCapacityScaleConfig>
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||