|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.SystemMemoryManager
public class SystemMemoryManager
Global to deal with IDV command line memory settings.
| Field Summary | |
|---|---|
static long |
MINIMUM_MEMORY
Minimum memory for the IDV. |
| Method Summary | |
|---|---|
static long |
checkAndRepair(long memory)
Check and repair memory settings |
static long |
convertToNumber(int percent)
Convenience method. |
static float |
convertToPercent(long memory)
Convenience method. |
static long |
getDefaultMemory()
The default when the user first starts up should be to use 80% between the "low and high-water mark", but they should be allowed to increase that to 100% of the high-water mark. |
static long |
getTotalMemory()
For 32 bit OS, the total should be the minimum of the (total system memory - 512Mb) and 1536MB. |
static boolean |
isMemoryAvailable()
Checks if is memory is available for this JVM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long MINIMUM_MEMORY
| Method Detail |
|---|
public static boolean isMemoryAvailable()
public static long getTotalMemory()
isMemoryAvailable() first. Must return at
least 512.
public static long getDefaultMemory()
public static float convertToPercent(long memory)
memory - the memory
public static long convertToNumber(int percent)
percent - the percent
public static long checkAndRepair(long memory)
memory - the memory setting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||