csli.util.thread
Class KillProcess
java.lang.Object
csli.util.thread.KillProcess
- All Implemented Interfaces:
- Runnable
public class KillProcess
- extends Object
- implements Runnable
Terminates the process (System.exit) after the specified delay. Useful for
debugging HmiModules, which stay running forever, and are easy to forget to
close.
|
Method Summary |
void |
run()
|
static void |
terminateAfter(int seconds)
Invoke this to kill the current process after x seconds |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
terminateAfter
public static void terminateAfter(int seconds)
- Invoke this to kill the current process after x seconds
- Parameters:
seconds - number of seconds to wait before termination
run
public void run()
- Specified by:
run in interface Runnable