protected int getMasterIndex(ServerName serverName) {
    List<MasterThread> masters = getMasterThreads();
    for (int i = 0; i < masters.size(); i++) {
      if (masters.get(i).getMaster().getServerName().equals(serverName)) {
        return i;
      }
    }
    return -1;
  }
Do a simulated kill all masters and regionservers. Useful when it is impossible to bring the
mini-cluster back for clean shutdown.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/MiniHBaseCluster.java