|
GigaSpaces XAP 9.7.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic void setNumberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfig
setNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic double getNumberOfCpuCores()
getNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
public String toString()
toString in class Objectpublic void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
ScaleStrategyCapacityRequirementConfig
setDrivesCapacityInMB 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*1024MBs
public Map<String,Long> getDrivesCapacityInMB()
throws NumberFormatException
getDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic CapacityRequirements toCapacityRequirements()
toCapacityRequirements in interface ScaleStrategyCapacityRequirementConfig
|
GigaSpaces XAP 9.7.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||