Class BlobTransferUtils
- java.lang.Object
-
- com.linkedin.davinci.blobtransfer.BlobTransferUtils
-
public class BlobTransferUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlobTransferUtils.BlobTransferType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BLOB_TRANSFER_COMPLETED
static java.lang.String
BLOB_TRANSFER_STATUS
static java.lang.String
BLOB_TRANSFER_TYPE
-
Constructor Summary
Constructors Constructor Description BlobTransferUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
generateFileChecksum(java.nio.file.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 Detail
-
BLOB_TRANSFER_STATUS
public static final java.lang.String BLOB_TRANSFER_STATUS
- See Also:
- Constant Field Values
-
BLOB_TRANSFER_COMPLETED
public static final java.lang.String BLOB_TRANSFER_COMPLETED
- See Also:
- Constant Field Values
-
BLOB_TRANSFER_TYPE
public static final java.lang.String BLOB_TRANSFER_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 java.lang.String generateFileChecksum(java.nio.file.Path filePath) throws java.io.IOException
Generate MD5 checksum for a file- Parameters:
filePath
- the path to the file- Returns:
- a hex string
- Throws:
java.io.IOException
- if an I/O error occurs
-
-