Package org.nuxeo.runtime.management.jvm
Class ThreadDeadlocksDetector
java.lang.Object
org.nuxeo.runtime.management.jvm.ThreadDeadlocksDetector
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfacestatic interfaceprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ThreadMXBeanprotected final ThreadDeadlocksDetector.Printerprotected Timer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()long[]dump(long[] lockedIds) static voidkillThreads(Set<Long> ids) protected static ThreadGrouprootGroup(ThreadGroup group) voidschedule(long period, ThreadDeadlocksDetector.Listener listener)
-
Field Details
-
timer
-
mgmt
-
printer
-
-
Constructor Details
-
ThreadDeadlocksDetector
public ThreadDeadlocksDetector()
-
-
Method Details
-
dump
- Throws:
IOException
-
detectThreadLock
public long[] detectThreadLock() -
schedule
-
cancel
public void cancel() -
killThreads
-
getThreads
-
rootGroup
-