public static ClusterStatusProtos.ReplicationLoadSource
    toReplicationLoadSource(ReplicationLoadSource rls) {
    return ClusterStatusProtos.ReplicationLoadSource.newBuilder().setPeerID(rls.getPeerID())
      .setAgeOfLastShippedOp(rls.getAgeOfLastShippedOp())
      .setSizeOfLogQueue((int) rls.getSizeOfLogQueue())
      .setTimeStampOfLastShippedOp(rls.getTimestampOfLastShippedOp())
      .setReplicationLag(rls.getReplicationLag()).setQueueId(rls.getQueueId())
      .setRecovered(rls.isRecovered()).setRunning(rls.isRunning())
      .setEditsSinceRestart(rls.hasEditsSinceRestart())
      .setTimeStampOfNextToReplicate(rls.getTimeStampOfNextToReplicate())
      .setOPsShipped(rls.getOPsShipped()).setEditsRead(rls.getEditsRead()).build();
  }
Convert HBaseProto.RegionInfo to a RegionInfo
@param proto the RegionInfo to convert
@return the converted RegionInfo
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java