public void setException(final Exception exception) {
      this.exception = exception;
    }
Get the number of regions in transition.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/RegionStates.java