net.i2p.router.tasks
Class ThreadDump
java.lang.Object
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
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 |
ThreadDump
ThreadDump()
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