protected class MemoryUsagePanel.MemoryMonitor
extends java.lang.Thread
| Modifier and Type | Field and Description |
|---|---|
protected int |
m_Interval
the refresh interval in msecs.
|
protected boolean |
m_Monitoring
whether the thread is still running.
|
| Constructor and Description |
|---|
MemoryMonitor()
default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getInterval()
Returns the refresh interval in msecs.
|
boolean |
isMonitoring()
Returns whether the thread is still running.
|
void |
run()
The run method.
|
void |
setInterval(int value)
Sets the refresh interval in msecs.
|
void |
stopMonitoring()
stops the monitoring thread.
|
protected void |
update()
Updates the GUI.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected int m_Interval
protected boolean m_Monitoring
public int getInterval()
public void setInterval(int value)
value - the refresh intervalpublic boolean isMonitoring()
public void stopMonitoring()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected void update()