public class RuntimeUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Runtime |
RUNTIME |
| 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 |
currentMethod()
Returns current method signature.
|
static java.lang.String |
joddLocation()
Returns jodd location.
|
public static java.lang.String currentMethod()
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()
classLocation(java.lang.Class)Copyright © 2003-2013 Jodd Team