Package de.hybris.platform.hac.facade
Class ThreadMonitor
java.lang.Object
de.hybris.platform.hac.facade.ThreadMonitor
Example of using the java.lang.management API to dump stack trace and to perform deadlock detection.
- Version:
- %% 12/22/05
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a ThreadMonitor object to get thread information in the local JVM. -
Method Summary
Modifier and TypeMethodDescriptionChecks if any threads are deadlocked.Prints the thread dump information to System.out.
-
Constructor Details
-
ThreadMonitor
public ThreadMonitor()Constructs a ThreadMonitor object to get thread information in the local JVM.
-
-
Method Details
-
threadDump
Prints the thread dump information to System.out.- Returns:
- the thread dump information.
-
findDeadlock
Checks if any threads are deadlocked. If any, print the thread dump information.
-