public class RuntimeUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RuntimeUtil.ProcessResult |
| Constructor and Description |
|---|
RuntimeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
availableMemory()
Returns the amount of available memory (free memory plus never allocated memory).
|
static float |
availableMemoryPercent()
Returns the amount of available memory in percents.
|
static java.lang.String |
classLocation(java.lang.Class clazz)
Returns location of the class.
|
static void |
compactMemory()
Compacts memory as much as possible by allocating huge memory block
and then forcing garbage collection.
|
static java.lang.String |
joddLocation()
Returns Jodd
location. |
static RuntimeUtil.ProcessResult |
run(java.lang.Process process)
Executes a process and returns the process output and exit code.
|
public static long availableMemory()
public static float availableMemoryPercent()
public static void compactMemory()
public static java.lang.String classLocation(java.lang.Class clazz)
public static java.lang.String joddLocation()
location.classLocation(java.lang.Class)public static RuntimeUtil.ProcessResult run(java.lang.Process process) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2003-2013 Jodd Team