| Modifier and Type | Field and Description |
|---|---|
| private static ThreadDeadlockDetector | |
| private static final String | |
| private final ThreadMXBean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public static void | |
| public static void | dumpAllThreadsAndLocks(String
the message msg, PrintStream the output out)Dump all deadlocks (if any). |
| private static void | |
| public static synchronized void | |
| private static void | printLockInfo(PrintWriter print, LockInfo[] locks, String tableWaitingForLock, ArrayList<String> tableExclusiveLocks, ArrayList<String> tableSharedLocksMap)
|
| private static void | |
| private static void |
| detector | back to summary |
|---|---|
| private static ThreadDeadlockDetector detector | |
| INDENT | back to summary |
|---|---|
| private static final String INDENT | |
| threadBean | back to summary |
|---|---|
| private final ThreadMXBean threadBean | |
| ThreadDeadlockDetector | back to summary |
|---|---|
| private ThreadDeadlockDetector() | |
| checkForDeadlocks | back to summary |
|---|---|
| pack-priv void checkForDeadlocks() Checks if any threads are deadlocked. If any, print the thread dump information. | |
| dumpAllThreadsAndLocks | back to summary |
|---|---|
| public static void dumpAllThreadsAndLocks(String msg) Dump all deadlocks (if any).
| |
| dumpAllThreadsAndLocks | back to summary |
|---|---|
| public static void dumpAllThreadsAndLocks(String msg, PrintStream out) Dump all deadlocks (if any).
| |
| dumpThreadsAndLocks | back to summary |
|---|---|
| private static void dumpThreadsAndLocks(String msg, ThreadMXBean threadBean, long[] threadIds, PrintStream out) | |
| init | back to summary |
|---|---|
| public static synchronized void init() Initialize the detector. | |
| printLockInfo | back to summary |
|---|---|
| private static void printLockInfo(PrintWriter print, LockInfo[] locks, String tableWaitingForLock, ArrayList<String> tableExclusiveLocks, ArrayList<String> tableSharedLocksMap) | |
| printThread | back to summary |
|---|---|
| private static void printThread(PrintWriter print, ThreadInfo ti) | |
| printThreadInfo | back to summary |
|---|---|
| private static void printThreadInfo(PrintWriter print, ThreadInfo ti) | |