Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

Constructor Summary
`DevUtils()`

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`

Field Detail

### logger

    public static java.util.logging.Logger logger

Constructor Detail

### DevUtils

    public DevUtils()

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2008 Internet Archive. All Rights Reserved.