org.archive.util
Class DevUtils
java.lang.Object
org.archive.util.DevUtils
public class DevUtils
- extends java.lang.Object
Write a message and stack trace to the 'org.archive.util.DevUtils' logger.
- Version:
- $Revision: 4644 $ $Date: 2006-09-20 22:40:21 +0000 (Wed, 20 Sep 2006) $
- Author:
- gojomo
Field Summary |
static java.util.logging.Logger |
logger
|
Method Summary |
static void |
betterPrintStack(java.lang.RuntimeException re)
Deprecated. This method was never used. |
static java.lang.String |
extraInfo()
|
static void |
sigquitSelf()
Send this JVM process a SIGQUIT; giving a thread dump and possibly
a heap histogram (if using -XX:+PrintClassHistogram). |
static void |
warnHandle(java.lang.Throwable ex,
java.lang.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static java.util.logging.Logger logger
DevUtils
public DevUtils()
warnHandle
public static void warnHandle(java.lang.Throwable ex,
java.lang.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.
- Parameters:
ex
- Exception we print a stacktrace on.note
- Message to print ahead of the stacktrace.
extraInfo
public static java.lang.String extraInfo()
- Returns:
- Extra information gotten from current Thread. May not
always be available in which case we return empty string.
betterPrintStack
@Deprecated
public static void betterPrintStack(java.lang.RuntimeException re)
- Deprecated. This method was never used.
- Nothing to see here, move along.
sigquitSelf
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. 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.
Copyright © 2003-2011 Internet Archive. All Rights Reserved.