public abstract class MemoryMonitor
extends java.lang.Object
MemoryUsage.| Constructor and Description |
|---|
MemoryMonitor() |
| Modifier and Type | Method and Description |
|---|---|
static MemoryMonitor |
get()
Obtains the
MemoryMonitor implementation suitable
for the current platform. |
static void |
main(java.lang.String[] args)
Main for test
|
abstract MemoryUsage |
monitor()
Obtains the memory usage statistics.
|
public abstract MemoryUsage monitor() throws java.io.IOException
java.io.IOException - If the computation fails for some reason.public static MemoryMonitor get() throws java.io.IOException
MemoryMonitor implementation suitable
for the current platform.java.io.IOException - if no applicable implementation is found.public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2012. All Rights Reserved.