protected class MemoryUsagePanel.MemoryMonitor extends Thread
Thread.State, Thread.UncaughtExceptionHandler
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.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
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, yield
protected 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()
protected void update()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.