|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
bb.util.ThreadMonitor.MonitorTask
private class ThreadMonitor.MonitorTask
Class which detects thread issues and calls the appropriate fireXXX event notification method.
This class is not multithread safe: it expects to be run by only a single thread.
Field Summary | |
---|---|
private ThreadMeasurer |
measurer
ThreadMeasurer used to measure the thread state. |
Constructor Summary | |
---|---|
private |
ThreadMonitor.MonitorTask(ThreadMeasurer measurer)
Constructor. |
Method Summary | |
---|---|
void |
run()
Detects any thread issues and calls the appropriate fireXXX event notification method. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ThreadMeasurer measurer
Contract: is never null.
Constructor Detail |
---|
private ThreadMonitor.MonitorTask(ThreadMeasurer measurer) throws IllegalArgumentException
IllegalArgumentException
- if measurer == nullMethod Detail |
---|
public void run()
If any Throwable is caught:
it is logged by the logger2
,
fireOnMonitoringError
is called,
and then stopMonitoring
is called.
run
in interface Runnable
run
in class TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |