@Deprecated public class CapacityRequirementsConfig extends Object implements ScaleStrategyCapacityRequirementConfig
| Constructor and Description |
|---|
CapacityRequirementsConfig()
Deprecated.
Default constructor
|
CapacityRequirementsConfig(CapacityRequirements newCapacity)
Deprecated.
|
CapacityRequirementsConfig(Map<String,String> properties)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Deprecated.
|
Map<String,Long> |
getDrivesCapacityInMB()
Deprecated.
|
long |
getMemoryCapacityInMB()
Deprecated.
|
double |
getNumberOfCpuCores()
Deprecated.
|
Map<String,String> |
getProperties()
Deprecated.
|
int |
hashCode()
Deprecated.
|
void |
setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
Deprecated.
Specifies the disk and network drive capacity.
|
void |
setMemoryCapacityInMB(long memory)
Deprecated.
Specifies the total memory capacity.
|
void |
setNumberOfCpuCores(double cpuCores)
Deprecated.
Specifies the total CPU cores.
|
void |
setProperties(Map<String,String> properties)
Deprecated.
|
CapacityRequirements |
toCapacityRequirements()
Deprecated.
|
String |
toString()
Deprecated.
|
public CapacityRequirementsConfig()
public CapacityRequirementsConfig(Map<String,String> properties)
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.