public boolean isDeadlocked() {
    return deadlocked;
  }
Monitoring of deadlocks thread
Please note. This class can not be used outside of tests
ambari-server/src/test/java/org/apache/ambari/server/testing/DeadlockWarningThread.java