edu.harvard.mgh.purcell.gCLINE.data
Class OpenSSHConnection.ConnectionThread

java.lang.Object
  extended by java.lang.Thread
      extended by edu.harvard.mgh.purcell.gCLINE.data.OpenSSHConnection.ConnectionThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
OpenSSHConnection

 class OpenSSHConnection.ConnectionThread
extends java.lang.Thread

The SSH-2 connection is established in this thread. If we would not use a separate thread (e.g., put this code in the event handler of the "Login" button) then the GUI would not be responsive (missing window repaints if you move the window etc.)


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  java.lang.String hostname
           
(package private)  int portnum
           
(package private)  java.lang.String username
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OpenSSHConnection.ConnectionThread(java.lang.String hostname, java.lang.String username, int portnum)
           
 
Method Summary
 void run()
           
 
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

hostname

java.lang.String hostname

username

java.lang.String username

portnum

int portnum
Constructor Detail

OpenSSHConnection.ConnectionThread

public OpenSSHConnection.ConnectionThread(java.lang.String hostname,
                                          java.lang.String username,
                                          int portnum)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread