com.atlassian.jira.web.monitor
Interface LongRequestMXBean


public interface LongRequestMXBean

Interface for JIRA's long request MXB. This bean's properties control what kind of logging is performed for long requests (requests that are not processed within a configurable time threshold).

Since:
v4.3

Method Summary
 int getDumpThreadsThreshold()
          Returns the dump threads threshold value.
 int getLogThreshold()
          Returns the log threshold value.
 String getThreadDumpsDir()
          Returns the directory where thread dumps will be created.
 void setDumpThreadsThreshold(int threshold)
          Sets the dump threads threshold value.
 void setLogThreshold(int threshold)
          Sets the log threshold value.
 void setThreadDumpsDir(String directory)
          Sets the directory where thread dumps will be created.
 

Method Detail

getLogThreshold

int getLogThreshold()
Returns the log threshold value. Requests that take more than this amount of time will be logged.

Returns:
an int containing the log threshold, in milliseconds

setLogThreshold

void setLogThreshold(int threshold)
Sets the log threshold value. Requests that take more than this amount of time will be logged.

Parameters:
threshold - an int containing the log threshold, in milliseconds

getDumpThreadsThreshold

int getDumpThreadsThreshold()
Returns the dump threads threshold value. Requests that take more than this amount of time may cause a JVM thread dump to be generated.

Returns:
an int containing the dump threads threshold, in milliseconds

setDumpThreadsThreshold

void setDumpThreadsThreshold(int threshold)
Sets the dump threads threshold value. Requests that take more than this amount of time may cause a JVM thread dump to be generated.

Parameters:
threshold - an int containing the dump threads threshold, in milliseconds

getThreadDumpsDir

String getThreadDumpsDir()
Returns the directory where thread dumps will be created.

Returns:
a String containing the absolute path to a directory

setThreadDumpsDir

void setThreadDumpsDir(String directory)
Sets the directory where thread dumps will be created.

Parameters:
directory - a String containing the absolute path to a directory


Copyright © 2002-2012 Atlassian. All Rights Reserved.