Class ThreaddumpConsolePlugin.ThreaddumpRunner
- java.lang.Object
-
- com.composum.sling.nodes.consoleplugin.ThreaddumpConsolePlugin.ThreaddumpRunner
-
- Enclosing class:
- ThreaddumpConsolePlugin
protected class ThreaddumpConsolePlugin.ThreaddumpRunner extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ThreaddumpConsolePlugin.ThreaddumpRunner.StacktraceWithThreads
-
Field Summary
Fields Modifier and Type Field Description protected Pattern
nameRegex
protected String
nameRegexStr
protected javax.servlet.http.HttpServletRequest
request
protected Set<Thread.State>
stati
protected ThreadMXBean
threadMXBean
protected PrintWriter
writer
-
Constructor Summary
Constructors Constructor Description ThreaddumpRunner(PrintWriter writer, javax.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
cumulativeCpuTime(List<Thread> threads)
void
print()
protected void
printForm()
protected void
printThreads()
protected String
stackTrace(StackTraceElement[] stackTraceElements)
-
-
-
Field Detail
-
writer
protected final PrintWriter writer
-
request
protected final javax.servlet.http.HttpServletRequest request
-
stati
protected Set<Thread.State> stati
-
nameRegexStr
protected String nameRegexStr
-
nameRegex
protected Pattern nameRegex
-
threadMXBean
protected ThreadMXBean threadMXBean
-
-
Constructor Detail
-
ThreaddumpRunner
public ThreaddumpRunner(PrintWriter writer, javax.servlet.http.HttpServletRequest request)
-
-
Method Detail
-
print
public void print()
-
printThreads
protected void printThreads()
-
stackTrace
protected String stackTrace(StackTraceElement[] stackTraceElements)
-
printForm
protected void printForm()
-
-