@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)
ScaleStrategyCapacityRequirementConfig
setMemoryCapacityInMB
in interface ScaleStrategyCapacityRequirementConfig
public long getMemoryCapacityInMB() throws NumberFormatException
getMemoryCapacityInMB
in interface ScaleStrategyCapacityRequirementConfig
NumberFormatException
public void setNumberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfig
setNumberOfCpuCores
in interface ScaleStrategyCapacityRequirementConfig
public double getNumberOfCpuCores()
getNumberOfCpuCores
in interface ScaleStrategyCapacityRequirementConfig
public void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
ScaleStrategyCapacityRequirementConfig
setDrivesCapacityInMB
in interface ScaleStrategyCapacityRequirementConfig
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*1024MBspublic Map<String,Long> getDrivesCapacityInMB() throws NumberFormatException
getDrivesCapacityInMB
in interface ScaleStrategyCapacityRequirementConfig
NumberFormatException
public CapacityRequirements toCapacityRequirements()
toCapacityRequirements
in interface ScaleStrategyCapacityRequirementConfig
Copyright © GigaSpaces.