Class BlobTransferUtil
java.lang.Object
com.linkedin.davinci.blobtransfer.BlobTransferUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BlobTransferManager<Void>
getP2PBlobTransferManagerForDVCAndStart
(int p2pTransferServerPort, int p2pTransferClientPort, String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats, BlobTransferUtils.BlobTransferTableFormat transferSnapshotTableFormat) static BlobTransferManager<Void>
getP2PBlobTransferManagerForDVCAndStart
(int p2pTransferPort, String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats, BlobTransferUtils.BlobTransferTableFormat transferSnapshotTableFormat) Get a P2P blob transfer manager for DaVinci Client and start it.static BlobTransferManager<Void>
getP2PBlobTransferManagerForServerAndStart
(int p2pTransferServerPort, int p2pTransferClientPort, String baseDir, CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewFuture, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats, BlobTransferUtils.BlobTransferTableFormat transferSnapshotTableFormat) Get a P2P blob transfer manager for Server and start it.
-
Constructor Details
-
BlobTransferUtil
public BlobTransferUtil()
-
-
Method Details
-
getP2PBlobTransferManagerForDVCAndStart
public static BlobTransferManager<Void> getP2PBlobTransferManagerForDVCAndStart(int p2pTransferPort, String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats, BlobTransferUtils.BlobTransferTableFormat transferSnapshotTableFormat) Get a P2P blob transfer manager for DaVinci Client and start it.- Parameters:
p2pTransferPort
- , the port used by the P2P transfer server and clientbaseDir
- , the base directory of the underlying storageclientConfig
- , the client config to start up a transport clientstorageMetadataService
- , the storage metadata service- Returns:
- the blob transfer manager
- Throws:
Exception
-
getP2PBlobTransferManagerForDVCAndStart
public static BlobTransferManager<Void> getP2PBlobTransferManagerForDVCAndStart(int p2pTransferServerPort, int p2pTransferClientPort, String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats, BlobTransferUtils.BlobTransferTableFormat transferSnapshotTableFormat) -
getP2PBlobTransferManagerForServerAndStart
public static BlobTransferManager<Void> getP2PBlobTransferManagerForServerAndStart(int p2pTransferServerPort, int p2pTransferClientPort, String baseDir, CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewFuture, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats, BlobTransferUtils.BlobTransferTableFormat transferSnapshotTableFormat) Get a P2P blob transfer manager for Server and start it.- Parameters:
p2pTransferServerPort
- the port used by the P2P transfer serverp2pTransferClientPort
- the port used by the P2P transfer clientbaseDir
- the base directory of the underlying storagecustomizedViewFuture
- the future of the customized view repository- Returns:
- the blob transfer manager
-