public boolean isOffline() {
    return state == State.OFFLINE;
  }
Update the duration of region in transition
@param previousStamp previous RegionState's timestamp
hbase-client/src/main/java/org/apache/hadoop/hbase/master/RegionState.java