Class ThreadMonitor
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.flatfile.pipelined.ThreadMonitor
-
public class ThreadMonitor extends Object
Keeps track of a list of threads and prints statistics of CPU usage of the threads. It also prints statistics of memory usage and garbage collections
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThreadMonitor.AutoRegisteringThreadFactory
Thread factory that registers all new threads with a given thread monitor.
-
Constructor Summary
Constructors Constructor Description ThreadMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printStatistics()
void
printStatistics(String heading)
void
registerThread(Thread thread)
void
start()
void
unregisterThread(Thread thread)
-