Class BlobTransferUtils

java.lang.Object
com.linkedin.davinci.blobtransfer.BlobTransferUtils

public class BlobTransferUtils extends Object
  • Field Details

  • Constructor Details

    • BlobTransferUtils

      public BlobTransferUtils()
  • Method Details

    • isMetadataMessage

      public static boolean isMetadataMessage(io.netty.handler.codec.http.HttpResponse msg)
      Check if the HttpResponse message is for metadata.
      Parameters:
      msg - the HttpResponse message
      Returns:
      true if the message is a metadata message, false otherwise
    • generateFileChecksum

      public static String generateFileChecksum(Path filePath) throws IOException
      Generate MD5 checksum for a file
      Parameters:
      filePath - the path to the file
      Returns:
      a hex string
      Throws:
      IOException - if an I/O error occurs