public class ThreadDeadlocksDetector extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ThreadDeadlocksDetector.JVM16Printer |
static class |
ThreadDeadlocksDetector.KillListener |
static interface |
ThreadDeadlocksDetector.Listener |
static interface |
ThreadDeadlocksDetector.Printer |
protected class |
ThreadDeadlocksDetector.Task |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
protected ThreadMXBean |
mgmt |
protected ThreadDeadlocksDetector.Printer |
printer |
protected Timer |
timer |
Constructor and Description |
---|
ThreadDeadlocksDetector() |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
long[] |
detectThreadLock() |
File |
dump(long[] lockedIds) |
protected static Map<Long,Thread> |
getThreads() |
static void |
killThreads(Set<Long> ids) |
protected static ThreadGroup |
rootGroup(ThreadGroup group) |
void |
schedule(long period,
ThreadDeadlocksDetector.Listener listener) |
protected final ThreadMXBean mgmt
protected final ThreadDeadlocksDetector.Printer printer
protected static final org.apache.commons.logging.Log log
public ThreadDeadlocksDetector()
public File dump(long[] lockedIds) throws IOException
IOException
public long[] detectThreadLock()
public void schedule(long period, ThreadDeadlocksDetector.Listener listener)
public void cancel()
public static void killThreads(Set<Long> ids)
protected static Map<Long,Thread> getThreads()
protected static ThreadGroup rootGroup(ThreadGroup group)
Copyright © 2015 Nuxeo SA. All rights reserved.