|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
server.DeviceThread
Controls the polling of all attributes associated with a single Device. Responsible for uncovering all the monitored Interfaces and each Interface's monitored Attributes. This thread polls each attribute at the Attribute's polling frequency (in seconds).
To handle the polling frequencies, DeviceThread creates a dedicated Timer thread, which supplies one second interrupts.
Timer| Nested Class Summary | |
class |
DeviceThread.PollInfo
Inner class to hold a time and boolean indicating polling required. |
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
DeviceThread(Device myDevice,
GLTMonitor controller,
Conf config)
Construct a DeviceThread object for a specific Device. |
|
| Method Summary | |
void |
run()
The DeviceThread builds a list of monitored Interfaces w/ monitored attributes. |
void |
update(java.util.Observable o,
java.lang.Object arg)
Process the notifications from all possible observable objects. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DeviceThread(Device myDevice,
GLTMonitor controller,
Conf config)
Also create the Timer thread, but don't start it yet.
myDevice - Device object for which to poll attributescontroller - GLTMon object that will notify us of changes| Method Detail |
public void run()
run in interface java.lang.Runnable
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.ObserverObserver.update(java.util.Observable, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||