public class CapacityRequirementsConfigurer extends Object implements ScaleStrategyCapacityRequirementConfigurer
CapacityRequirementsConfig
object.Constructor and Description |
---|
CapacityRequirementsConfigurer() |
Modifier and Type | Method and Description |
---|---|
CapacityRequirementsConfig |
create() |
CapacityRequirementsConfigurer |
driveCapacity(String drive,
int size,
MemoryUnit unit)
Specifies the disk and network drive capacity.
|
CapacityRequirementsConfigurer |
driveCapacity(String drive,
String size)
Specifies the disk and network drive capacity.
|
CapacityRequirementsConfigurer |
memoryCapacity(int memory,
MemoryUnit unit)
Specifies the memory capacity (RAM).
|
CapacityRequirementsConfigurer |
memoryCapacity(String memory)
Specifies the memory capacity (RAM).
|
CapacityRequirementsConfigurer |
numberOfCpuCores(double cpuCores)
Specifies the number of CPU cores (as reported by the operating system)
This includes both real cores and hyper-threaded cores.
|
public CapacityRequirementsConfigurer 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 CapacityRequirementsConfigurer memoryCapacity(int memory, MemoryUnit unit)
ScaleStrategyCapacityRequirementConfigurer
memoryCapacity
in interface ScaleStrategyCapacityRequirementConfigurer
public CapacityRequirementsConfigurer numberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfigurer
numberOfCpuCores
in interface ScaleStrategyCapacityRequirementConfigurer
public CapacityRequirementsConfigurer 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 CapacityRequirementsConfigurer 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 CapacityRequirementsConfig create()
Copyright © GigaSpaces.