public RegionServerStatusProtos.FileArchiveNotificationRequest
    buildFileArchiveRequest(TableName tn, Collection<Entry<String, Long>> archivedFiles) {
    RegionServerStatusProtos.FileArchiveNotificationRequest.Builder builder =
      RegionServerStatusProtos.FileArchiveNotificationRequest.newBuilder();
    HBaseProtos.TableName protoTn = ProtobufUtil.toProtoTableName(tn);
    for (Entry<String, Long> archivedFile : archivedFiles) {
      RegionServerStatusProtos.FileArchiveNotificationRequest.FileWithSize fws =
        RegionServerStatusProtos.FileArchiveNotificationRequest.FileWithSize.newBuilder()
          .setName(archivedFile.getKey()).setSize(archivedFile.getValue()).setTableName(protoTn)
          .build();
      builder.addArchivedFiles(fws);
    }
    final RegionServerStatusProtos.FileArchiveNotificationRequest request = builder.build();
    if (LOG.isTraceEnabled()) {
      LOG.trace("Reporting file archival to Master: " + TextFormat.shortDebugString(request));
    }
    return request;
  }
Builds the protobuf message to inform the Master of files being archived.
@param tn            The table the files previously belonged to.
@param archivedFiles The files and their size in bytes that were archived.
@return The protobuf representation
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/RegionServerSpaceQuotaManager.java