public int getNumLiveRegionServers() {
    return this.hbaseCluster.getLiveRegionServers().size();
  }
Returns Number of live region servers in the cluster currently.
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/MiniHBaseCluster.java