@Override
    protected boolean parseFrom(byte[] bytes) throws DeserializationException {
      ProtobufUtil.expectPBMagicPrefix(bytes);
      ZooKeeperProtos.SwitchState.Builder builder = ZooKeeperProtos.SwitchState.newBuilder();
      try {
        int magicLen = ProtobufUtil.lengthOfPBMagic();
        ProtobufUtil.mergeFrom(builder, bytes, magicLen, bytes.length - magicLen);
      } catch (IOException e) {
        throw new DeserializationException(e);
      }
      return builder.build().getEnabled();
    }
Tracks the switch of split and merge states.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/SplitOrMergeStateStore.java