public class CapacityRequirementsConfig extends Object implements ScaleStrategyCapacityRequirementConfig
| Constructor and Description |
|---|
CapacityRequirementsConfig()
Default constructor
|
CapacityRequirementsConfig(CapacityRequirements newCapacity) |
CapacityRequirementsConfig(Map<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,Long> |
getDrivesCapacityInMB() |
long |
getMemoryCapacityInMB() |
double |
getNumberOfCpuCores() |
Map<String,String> |
getProperties() |
int |
hashCode() |
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.
|
void |
setProperties(Map<String,String> properties) |
CapacityRequirements |
toCapacityRequirements() |
String |
toString() |
public CapacityRequirementsConfig()
public CapacityRequirementsConfig(CapacityRequirements newCapacity)
newCapacity - public void setMemoryCapacityInMB(long memory)
ScaleStrategyCapacityRequirementConfigsetMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfigpublic long getMemoryCapacityInMB()
throws NumberFormatException
getMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic void setNumberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfigsetNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic double getNumberOfCpuCores()
getNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
ScaleStrategyCapacityRequirementConfigsetDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfigmegaBytesPerDrive - - 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*1024MBspublic Map<String,Long> getDrivesCapacityInMB() throws NumberFormatException
getDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic CapacityRequirements toCapacityRequirements()
toCapacityRequirements in interface ScaleStrategyCapacityRequirementConfigCopyright © GigaSpaces.