Class BlobTransferUtils
java.lang.Object
com.linkedin.davinci.blobtransfer.BlobTransferUtils
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
generateFileChecksum
(Path filePath) Generate MD5 checksum for a filestatic boolean
isMetadataMessage
(io.netty.handler.codec.http.HttpResponse msg) Check if the HttpResponse message is for metadata.
-
Field Details
-
BLOB_TRANSFER_STATUS
- See Also:
-
BLOB_TRANSFER_COMPLETED
- See Also:
-
BLOB_TRANSFER_TYPE
- See Also:
-
-
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
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
-