public abstract class MemoryMonitor extends 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(String[] args)
Main for test
|
abstract MemoryUsage |
monitor()
Obtains the memory usage statistics.
|
public abstract MemoryUsage monitor() throws IOException
IOException - If the computation fails for some reason.public static MemoryMonitor get() throws IOException
MemoryMonitor implementation suitable
for the current platform.IOException - if no applicable implementation is found.Copyright © 2004-2014. All Rights Reserved.