henplus.commands
Class LongRunningTimeDisplay

java.lang.Object
  extended by henplus.commands.LongRunningTimeDisplay
All Implemented Interfaces:
Runnable

public class LongRunningTimeDisplay
extends Object
implements Runnable

After arming, this runnable will display the current time after some timeout. Used in long running SQL-statements to show a) how long it took so far b) keep terminal sessions open that are otherwise being closed by some firewalls :-)

Version:
$Revision: 1.1 $
Author:
hzeller

Constructor Summary
LongRunningTimeDisplay(String msg, long showAfter)
           
 
Method Summary
 void arm()
           
 void disarm()
           
 void run()
           
 void stopThread()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongRunningTimeDisplay

public LongRunningTimeDisplay(String msg,
                              long showAfter)
Method Detail

arm

public void arm()

disarm

public void disarm()

stopThread

public void stopThread()

run

public void run()
Specified by:
run in interface Runnable


? 1997..2006 Henner Zeller