kawigi.util
Class KillThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--kawigi.util.KillThread
All Implemented Interfaces:
java.lang.Runnable

public class KillThread
extends java.lang.Thread

Waits for the number of seconds specified in the configuration and then abruptly stops the process if it hasn't already ended.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
KillThread(kawigi.util.ProcessContainer proc)
          Creates a new KillThread to monitor proc.
 
Method Summary
 void run()
          Waits for a certain number of seconds and then kills the process if it is not yet finished.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Constructor Detail

KillThread

public KillThread(kawigi.util.ProcessContainer proc)
Creates a new KillThread to monitor proc.

Method Detail

run

public void run()
Waits for a certain number of seconds and then kills the process if it is not yet finished.

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