public boolean isSplitOrMergeEnabled(MasterSwitchType switchType) {
    switch (switchType) {
      case SPLIT:
        return splitStateStore.get();
      case MERGE:
        return mergeStateStore.get();
      default:
        break;
    }
    return false;
  }
Tracks the switch of split and merge states.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitOrMergeStateStore.java