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)
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.