|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScaleStrategyCapacityRequirementConfig
Defines a POJO that describes memory,cpu cores,drive capacity
Can be converted into a CapacityRequirements
with {#toCapacityRequirements()}.
Method Summary | |
---|---|
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()
|
Method Detail |
---|
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()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |