Class ThreadDump


  • abstract class ThreadDump
    extends Object
    Only works with wrapper on non-windows platforms
    Since:
    0.9.3 moved from RouterWatchdog
    • 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