public class SystemUtils extends Object
| Constructor and Description |
|---|
SystemUtils() |
| Modifier and Type | Method and 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) |
public static long bytesToMeg(long bytes)
public static long megsToBytes(long megs)
public static long getTotalMemory()
public static long getAvailableMemory()
public static double getPercentMemoryFree()
public static void checkAvailableMemory()
throws RuntimeException
RuntimeExceptionpublic static void checkAvailableMemory(long megsFree)
throws RuntimeException
RuntimeExceptionpublic static void checkAvailableMemory(double percentFree)
throws RuntimeException
RuntimeExceptionCopyright © 2020 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.