public byte[] toByteArray() {
    // First create a pb ServerName. Then create a ByteString w/ the TaskState
    // bytes in it. Finally create a SplitLogTaskState passing in the two
    // pbs just created.
    HBaseProtos.ServerName snpb = ProtobufUtil.toServerName(this.originServer);
    ZooKeeperProtos.SplitLogTask slts =
      ZooKeeperProtos.SplitLogTask.newBuilder().setServerName(snpb).setState(this.state).build();
    return ProtobufUtil.prependPBMagic(slts.toByteArray());
  }
@return This instance serialized into a byte array
@see #parseFrom(byte[])
hbase-server/src/main/java/org/apache/hadoop/hbase/SplitLogTask.java