net.sf.clichart.main.cliserver
Class SystemExitTimer

java.lang.Object
  extended by net.sf.clichart.main.cliserver.SystemExitTimer

public class SystemExitTimer
extends java.lang.Object

Keeps a timer with a specified timeout, and if it hasn't been told of any lines of input data being provided within that time, calls System.exit(). This is an attempt to get around occasional very fatal problems with the appearance of a zombie process after generating lots of charts without ever exiting.

Author:
johnd

Constructor Summary
SystemExitTimer()
           
 
Method Summary
 void resetTimeout()
          Indicate that activity has been seen, so reset the timeout
 void setTimeoutPeriod(int timeoutInSeconds)
          Reset the timeout period
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemExitTimer

public SystemExitTimer()
Method Detail

setTimeoutPeriod

public void setTimeoutPeriod(int timeoutInSeconds)
Reset the timeout period


resetTimeout

public void resetTimeout()
Indicate that activity has been seen, so reset the timeout