|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.pu.elastic.config.CapacityRequirementsConfig
public class CapacityRequirementsConfig
A config object for configuring capacity requirements
Constructor Summary | |
---|---|
CapacityRequirementsConfig()
Default constructor |
|
CapacityRequirementsConfig(CapacityRequirements newCapacity)
|
|
CapacityRequirementsConfig(Map<String,String> properties)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CapacityRequirementsConfig()
public CapacityRequirementsConfig(Map<String,String> properties)
public CapacityRequirementsConfig(CapacityRequirements newCapacity)
newCapacity
- Method Detail |
---|
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 Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
public String toString()
toString
in class Object
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 int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public CapacityRequirements toCapacityRequirements()
toCapacityRequirements
in interface ScaleStrategyCapacityRequirementConfig
|
GigaSpaces XAP 10.0.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |