|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.hudson.MemoryMonitor
public abstract class MemoryMonitor
Encapsulates how to compute MemoryUsage
.
Constructor Summary | |
---|---|
MemoryMonitor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryMonitor()
Method Detail |
---|
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.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |