Class BlobTransferUtils
java.lang.Object
com.linkedin.davinci.blobtransfer.BlobTransferUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<BlobTransferAclHandler>
createAclHandler
(VeniceConfigLoader configLoader) Create the acl handler for blob transfer, for both DVC peers and server peersstatic io.netty.handler.ssl.SslHandler
createBlobTransferClientSslHandler
(Optional<SSLFactory> sslFactory) static Optional<SSLFactory>
createSSLFactoryForBlobTransferInDVC
(VeniceConfigLoader configLoader) Create an SSLFactory from the Venice config loaderstatic 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
-
createSSLFactoryForBlobTransferInDVC
public static Optional<SSLFactory> createSSLFactoryForBlobTransferInDVC(VeniceConfigLoader configLoader) Create an SSLFactory from the Venice config loader- Parameters:
configLoader
- The Venice config loader containing SSL configuration- Returns:
- Optional SSLFactory, which will be empty if SSL is not enabled
-
createBlobTransferClientSslHandler
public static io.netty.handler.ssl.SslHandler createBlobTransferClientSslHandler(Optional<SSLFactory> sslFactory) -
createAclHandler
Create the acl handler for blob transfer, for both DVC peers and server peers
-