|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
org.mobicents.slee.management.rules.RulesScanner.ScannerThread
public class RulesScanner.ScannerThread
Should use Timer/TimerTask instead? This has some issues with interaction with ScanEnabled attribute. ScanEnabled works only when starting/stopping.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean |
active
Active synchronization. |
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean |
enabled
True if the scan loop should run. |
protected java.lang.Object |
lock
Lock/notify object. |
protected org.jboss.logging.Logger |
scannerLog
We get our own logger. |
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean |
shuttingDown
True if we are shutting down. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
RulesScanner.ScannerThread(boolean enabled)
|
|
| Method Summary | |
|---|---|
void |
doScan()
|
protected void |
loop()
|
void |
run()
|
void |
setEnabled(boolean enabled)
|
void |
shutdown()
|
protected void |
waitForInactive()
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.jboss.logging.Logger scannerLog
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean enabled
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean shuttingDown
protected java.lang.Object lock
protected EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean active
| Constructor Detail |
|---|
public RulesScanner.ScannerThread(boolean enabled)
| Method Detail |
|---|
public void setEnabled(boolean enabled)
public void shutdown()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadprotected void waitForInactive()
public void doScan()
protected void loop()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||