|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.pu.elastic.config.CapacityRequirementsConfigurer
public class CapacityRequirementsConfigurer
Fluent API for creating a new CapacityRequirementsConfig
object.
Constructor Summary | |
---|---|
CapacityRequirementsConfigurer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CapacityRequirementsConfigurer()
Method Detail |
---|
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()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |