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 longbytesToMeg(long bytes)static voidcheckAvailableMemory()static voidcheckAvailableMemory(double percentFree)static voidcheckAvailableMemory(long megsFree)static longgetAvailableMemory()static doublegetPercentMemoryFree()static longgetTotalMemory()static longmegsToBytes(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
-