public int getNumLiveRegionServers() {
    return this.hbaseCluster.getLiveRegionServers().size();
  }
Returns number of live region servers in the cluster currently.
hbase-server/src/test/java/org/apache/hadoop/hbase/SingleProcessHBaseCluster.java