Package gov.nasa.pds.web.ui.utils
Class SystemUtils
java.lang.Object
gov.nasa.pds.web.ui.utils.SystemUtils
public class SystemUtils extends Object
-
Constructor Summary
Constructors Constructor Description SystemUtils()
-
Method Summary
Modifier and Type Method Description static long
bytesToMeg(long bytes)
static void
checkAvailableMemory()
static void
checkAvailableMemory(double percentFree)
static void
checkAvailableMemory(long megsFree)
static long
getAvailableMemory()
static double
getPercentMemoryFree()
static long
getTotalMemory()
static long
megsToBytes(long megs)
-
Constructor Details
-
SystemUtils
public SystemUtils()
-
-
Method Details
-
bytesToMeg
public static long bytesToMeg(long bytes) -
megsToBytes
public static long megsToBytes(long megs) -
getTotalMemory
public static long getTotalMemory() -
getAvailableMemory
public static long getAvailableMemory() -
getPercentMemoryFree
public static double getPercentMemoryFree() -
checkAvailableMemory
- Throws:
RuntimeException
-
checkAvailableMemory
- Throws:
RuntimeException
-
checkAvailableMemory
- Throws:
RuntimeException
-