Package 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
-
-
Constructor Summary
Constructors Constructor Description ThreadDump()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
dump(I2PAppContext context, int secondsToWait)
Signal the wrapper to asynchronously dump threads to wrapper.log.
-
-
-
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
-
-