@Override
    protected byte[] toByteArray(boolean enabled) {
      ZooKeeperProtos.SwitchState.Builder builder = ZooKeeperProtos.SwitchState.newBuilder();
      builder.setEnabled(enabled);
      return ProtobufUtil.prependPBMagic(builder.build().toByteArray());
    }
Tracks the switch of split and merge states.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitOrMergeStateStore.java