| java.lang.Object org.archive.util.DevUtils
DevUtils | public class DevUtils (Code) | | Write a message and stack trace to the 'org.archive.util.DevUtils' logger.
author: gojomo version: $Revision: 4644 $ $Date: 2006-09-20 22:40:21 +0000 (Wed, 20 Sep 2006) $ |
Method Summary | |
public static void | betterPrintStack(RuntimeException re) Nothing to see here, move along. | public static String | extraInfo() Extra information gotten from current Thread. | public static void | sigquitSelf() Send this JVM process a SIGQUIT; giving a thread dump and possibly
a heap histogram (if using -XX:+PrintClassHistogram).
Used to automatically dump info, for example when a serious error
is encountered. | public static void | warnHandle(Throwable ex, String note) Log a warning message to the logger 'org.archive.util.DevUtils' made of
the passed 'note' and a stack trace based off passed exception. |
betterPrintStack | public static void betterPrintStack(RuntimeException re)(Code) | | Nothing to see here, move along.
|
extraInfo | public static String extraInfo()(Code) | | Extra information gotten from current Thread. May notalways be available in which case we return empty string. |
sigquitSelf | public static void sigquitSelf()(Code) | | Send this JVM process a SIGQUIT; giving a thread dump and possibly
a heap histogram (if using -XX:+PrintClassHistogram).
Used to automatically dump info, for example when a serious error
is encountered. Would use 'jmap'/'jstack', but have seen JVM
lockups -- perhaps due to lost thread wake signals -- when using
those against Sun 1.5.0+03 64bit JVM.
|
warnHandle | public static void warnHandle(Throwable ex, String note)(Code) | | Log a warning message to the logger 'org.archive.util.DevUtils' made of
the passed 'note' and a stack trace based off passed exception.
Parameters: ex - Exception we print a stacktrace on. Parameters: note - Message to print ahead of the stacktrace. |
|
|