com.isti.quakewatch.util
Class StatusCheckingThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.isti.util.IstiThread
          extended by com.isti.util.IstiNotifyThread
              extended by com.isti.quakewatch.util.StatusCheckingThread
All Implemented Interfaces:
java.lang.Runnable

public class StatusCheckingThread
extends IstiNotifyThread

Class StatusCheckingThread defines a thread that periodically calls the QWServices 'clientStatusCheck()' method.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  QWConnectionMgr connMgrObj
           
protected  QWConnProperties connPropsObj
           
protected  LogFile logObj
           
 
Fields inherited from class com.isti.util.IstiThread
DEFAULT_TERMINATE_WAIT_TIME, terminateFlag
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StatusCheckingThread(QWConnectionMgr connMgrObj)
          Creates a status-checking thread object.
 
Method Summary
 void connectionStatusChanged()
          Called after the connection status has changed.
 void run()
          Executing method for thread.
 
Methods inherited from class com.isti.util.IstiNotifyThread
sleep, terminate
 
Methods inherited from class com.isti.util.IstiThread
clearThreadWaitNotifyFlag, isTerminated, nextThreadNum, notifyThread, start, terminate, waitForNotify, waitForNotify, waitForTerminate, waitForTerminate, wasStarted
 
Methods inherited from class java.lang.Thread
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, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connMgrObj

protected final QWConnectionMgr connMgrObj

connPropsObj

protected final QWConnProperties connPropsObj

logObj

protected final LogFile logObj
Constructor Detail

StatusCheckingThread

public StatusCheckingThread(QWConnectionMgr connMgrObj)
Creates a status-checking thread object.

Parameters:
connMgrObj - the connection-manager object to use.
Method Detail

run

public void run()
Executing method for thread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

connectionStatusChanged

public void connectionStatusChanged()
Called after the connection status has changed. This interrupts any sleep-delay in progress, allowing the state of the connection to be detected and the status check-in to be re-enabled or performed immediately.