org.apache.manifoldcf.agents.output.gts
Class HttpPoster.StatusThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.apache.manifoldcf.agents.output.gts.HttpPoster.StatusThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
HttpPoster

protected class HttpPoster.StatusThread
extends java.lang.Thread

Killable thread that does a status check. Java 1.5 stopped permitting thread interruptions to abort socket waits. As a result, it is impossible to get threads to shutdown cleanly that are doing such waits. So, the places where this happens are segregated in their own threads so that they can be just abandoned. This thread does a status check.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.lang.Throwable exception
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
HttpPoster.StatusThread()
           
 
Method Summary
 java.lang.Throwable getException()
           
 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

exception

protected java.lang.Throwable exception
Constructor Detail

HttpPoster.StatusThread

public HttpPoster.StatusThread()
Method Detail

run

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

getException

public java.lang.Throwable getException()