at.gv.egiz.pdfas.impl.input.correction
Class ExternalCorrector.TimeoutThread

java.lang.Object
  extended by java.lang.Thread
      extended by at.gv.egiz.pdfas.impl.input.correction.ExternalCorrector.TimeoutThread
All Implemented Interfaces:
Runnable
Enclosing class:
ExternalCorrector

protected static class ExternalCorrector.TimeoutThread
extends Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  BufferedReader errReader
           
protected  Process proc
           
protected  boolean ranIntoTimeout
           
protected  Thread[] threads
           
protected  long timeout
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExternalCorrector.TimeoutThread(Process proc, long timeout, Thread[] threadsToInterrupt)
           
 
Method Summary
 boolean isTimedOut()
          Tells, if the process ran into the timeout.
 void run()
           
 
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
 

Field Detail

proc

protected Process proc

timeout

protected long timeout

ranIntoTimeout

protected boolean ranIntoTimeout

threads

protected Thread[] threads

errReader

protected BufferedReader errReader
Constructor Detail

ExternalCorrector.TimeoutThread

public ExternalCorrector.TimeoutThread(Process proc,
                                       long timeout,
                                       Thread[] threadsToInterrupt)
Method Detail

run

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

isTimedOut

public boolean isTimedOut()
Tells, if the process ran into the timeout.

Returns:
Returns true if the timeout was reached. Returns false if the timeout was not reached.


Copyright © 2006-2011. All Rights Reserved.