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
RuntimeException
public static void checkAvailableMemory(long megsFree) throws RuntimeException
RuntimeException
public static void checkAvailableMemory(double percentFree) throws RuntimeException
RuntimeException
Copyright © 2010–2016 Planetary Data System. All rights reserved.