com.atlassian.jira.web.monitor.dump
Class Dumper

java.lang.Object
  extended by com.atlassian.jira.web.monitor.dump.Dumper

public class Dumper
extends Object

This class creates thread dump files in a specified directory. If, for some reason, this Dumper is unable to write to the target directory, it will simply print the thread dump to System.err.

Since:
v4.3

Constructor Summary
Dumper()
           
 
Method Summary
 String dumpThreads(String directory)
          Obtains a JVM thread dump and writes it to a file, if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dumper

public Dumper()
Method Detail

dumpThreads

public String dumpThreads(@Nullable
                          String directory)
Obtains a JVM thread dump and writes it to a file, if possible. If writing to a file fails, the thread dump is written to System.err.

Parameters:
directory - the directory where the thread dump will be saved
Returns:
a String containing the absolute path name of the file that was created, or null if the thread dump was written to System.err
See Also:
ThreadMXBean


Copyright © 2002-2013 Atlassian. All Rights Reserved.