org.I0Itec.zkclient
Class GatewayThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.I0Itec.zkclient.GatewayThread
All Implemented Interfaces:
java.lang.Runnable

public class GatewayThread
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected static org.apache.log4j.Logger LOG
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
GatewayThread(int port, int destinationPort)
           
 
Method Summary
 void awaitUp()
           
protected  void closeQuietly(java.io.Closeable closable)
           
 void interrupt()
           
 void interruptAndJoin()
           
 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, 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

LOG

protected static final org.apache.log4j.Logger LOG
Constructor Detail

GatewayThread

public GatewayThread(int port,
                     int destinationPort)
Method Detail

run

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

closeQuietly

protected void closeQuietly(java.io.Closeable closable)

interrupt

public void interrupt()
Overrides:
interrupt in class java.lang.Thread

interruptAndJoin

public void interruptAndJoin()
                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

awaitUp

public void awaitUp()