|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.util.RuntimeUtil
public class RuntimeUtil
Runtime utilities.
| Field Summary | |
|---|---|
static java.lang.Runtime |
RUNTIME
|
| Constructor Summary | |
|---|---|
RuntimeUtil()
|
|
| Method Summary | |
|---|---|
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 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Runtime RUNTIME
| Constructor Detail |
|---|
public RuntimeUtil()
| Method Detail |
|---|
public static java.lang.String currentMethod()
public static long availableMemory()
public static float availableMemoryPercent()
public static void compactMemory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||