Class BlobTransferUtils
java.lang.Object
com.linkedin.davinci.blobtransfer.BlobTransferUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic 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.SslHandlercreateBlobTransferClientSslHandler(Optional<SSLFactory> sslFactory) static Optional<SSLFactory>createSSLFactoryForBlobTransferInDVC(VeniceConfigLoader configLoader) Create an SSLFactory from the Venice config loaderstatic StringgenerateFileChecksum(Path filePath) Generate MD5 checksum for a filestatic booleanisBlobTransferManagerEnabled(VeniceServerConfig backendConfig, boolean isIsolatedIngestionEnabled) A config check to determine if blob transfer manager is enabledstatic booleanisMetadataMessage(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 -
isBlobTransferManagerEnabled
public static boolean isBlobTransferManagerEnabled(VeniceServerConfig backendConfig, boolean isIsolatedIngestionEnabled) A config check to determine if blob transfer manager is enabled- Parameters:
backendConfig- the Venice server configisIsolatedIngestionEnabled- whether isolated ingestion is enabled- Returns:
- true if blob transfer manager is enabled, false otherwise
-