public interface ScaleStrategyCapacityRequirementConfig
CapacityRequirements
with {#toCapacityRequirements()}.Modifier and Type | Method and Description |
---|---|
Map<String,Long> |
getDrivesCapacityInMB() |
long |
getMemoryCapacityInMB() |
double |
getNumberOfCpuCores() |
void |
setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
Specifies the disk and network drive capacity.
|
void |
setMemoryCapacityInMB(long memory)
Specifies the total memory capacity.
|
void |
setNumberOfCpuCores(double cpuCores)
Specifies the total CPU cores.
|
CapacityRequirements |
toCapacityRequirements() |
void setMemoryCapacityInMB(long memory)
long getMemoryCapacityInMB() throws NumberFormatException
NumberFormatException
void setNumberOfCpuCores(double cpuCores)
double getNumberOfCpuCores()
void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
megaBytesPerDrive
- - a mapping between the file system directory representing the drive and its capacity (in mega-bytes) needed by the pu .
For example the drive "/" (on linux) has the size of 50*1024MBs
or the drive "c:\" (on windows) has the size of 50*1024MBsMap<String,Long> getDrivesCapacityInMB() throws NumberFormatException
NumberFormatException
CapacityRequirements toCapacityRequirements()
Copyright © GigaSpaces.