public void setSplitOrMergeEnabled(boolean enabled, MasterSwitchType switchType)
    throws IOException {
    switch (switchType) {
      case SPLIT:
        splitStateStore.set(enabled);
        break;
      case MERGE:
        mergeStateStore.set(enabled);
        break;
      default:
        break;
    }
  }
Tracks the switch of split and merge states.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitOrMergeStateStore.java