com.isti.quakewatch.util
Class QWCorbaConnector.EventChannelConnectThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.isti.quakewatch.util.QWCorbaConnector.EventChannelConnectThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
QWCorbaConnector

protected class QWCorbaConnector.EventChannelConnectThread
extends java.lang.Thread

Class EventChannelConnectThread defines a thread used to connect to the CORBA event channel.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
QWCorbaConnector.EventChannelConnectThread(java.lang.String evtChLocStr)
          Creates a thread used to connect to the CORBA event channel.
QWCorbaConnector.EventChannelConnectThread(java.lang.String serverHostAddrStr, int serverHostPortNum)
          Creates a thread used to connect to the CORBA event channel.
 
Method Summary
 void run()
          Runs the connect thread.
 void terminate()
          Sets flag to indicate that this thread is "terminated".
 
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, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QWCorbaConnector.EventChannelConnectThread

public QWCorbaConnector.EventChannelConnectThread(java.lang.String serverHostAddrStr,
                                                  int serverHostPortNum)
Creates a thread used to connect to the CORBA event channel.

Parameters:
serverHostAddrStr - the host address used to locate the server.
serverHostPortNum - the port number used to locate the server.

QWCorbaConnector.EventChannelConnectThread

public QWCorbaConnector.EventChannelConnectThread(java.lang.String evtChLocStr)
Creates a thread used to connect to the CORBA event channel.

Parameters:
evtChLocStr - the locator string to use.
Method Detail

run

public void run()
Runs the connect thread.

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

terminate

public void terminate()
Sets flag to indicate that this thread is "terminated". Any in-progress connection activities will be aborted (where possible).