org.objectweb.fractal.explorer.attributes
Class AttributeMonitoringThread
java.lang.Object
java.lang.Thread
org.objectweb.fractal.explorer.attributes.AttributeMonitoringThread
- All Implemented Interfaces:
- Runnable
public class AttributeMonitoringThread
- extends Thread
A Thread
responsible for periodically testing the value of the
monitored attribute.
Field Summary |
boolean |
running
running . |
Method Summary |
void |
run()
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, 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 |
running
public boolean running
running
.
AttributeMonitoringThread
public AttributeMonitoringThread(int monitoringPeriod,
Object attributeController,
String monitoredAttribute,
JTable table,
int row)
- Creates a new attribute monitoring thread.
- Parameters:
monitoringPeriod
- the period of testing the attribute's value.attributeController
- the object providing access to the monitored
attribute's value.monitoredAttribute
- the name of the attribute to be monitored.table
- a JTable
that should be updated when the
monitored attribute's value changes.row
- a row of the table which stores the attribute monitored by this
thread.
run
public void run()
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
- See Also:
Thread.run()