net.i2p.router.tasks
Class ThreadDump

java.lang.Object
  extended by net.i2p.router.tasks.ThreadDump

abstract class ThreadDump
extends Object

Only works with wrapper on non-windows platforms

Since:
0.9.3 moved from RouterWatchdog

Constructor Summary
ThreadDump()
           
 
Method Summary
static boolean dump(I2PAppContext context, int secondsToWait)
          Signal the wrapper to asynchronously dump threads to wrapper.log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadDump

ThreadDump()
Method Detail

dump

public static boolean dump(I2PAppContext context,
                           int secondsToWait)
Signal the wrapper to asynchronously dump threads to wrapper.log. It waits for the signal to complete (which should be fast) but does not wait for the dump itself.

Parameters:
secondsToWait - if <= 0, don't wait
Returns:
success, false if windows or no wrapper, true if secondsToWait <= 0, false if timed out, dump result otherwise