Class BlobTransferUtil
- java.lang.Object
-
- com.linkedin.davinci.blobtransfer.BlobTransferUtil
-
public class BlobTransferUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BlobTransferUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlobTransferManager<java.lang.Void>
getP2PBlobTransferManagerForDVCAndStart(int p2pTransferServerPort, int p2pTransferClientPort, java.lang.String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats)
static BlobTransferManager<java.lang.Void>
getP2PBlobTransferManagerForDVCAndStart(int p2pTransferPort, java.lang.String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats)
Get a P2P blob transfer manager for DaVinci Client and start it.static BlobTransferManager<java.lang.Void>
getP2PBlobTransferManagerForServerAndStart(int p2pTransferServerPort, int p2pTransferClientPort, java.lang.String baseDir, java.util.concurrent.CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewFuture, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats)
Get a P2P blob transfer manager for Server and start it.
-
-
-
Method Detail
-
getP2PBlobTransferManagerForDVCAndStart
public static BlobTransferManager<java.lang.Void> getP2PBlobTransferManagerForDVCAndStart(int p2pTransferPort, java.lang.String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats)
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:
java.lang.Exception
-
getP2PBlobTransferManagerForDVCAndStart
public static BlobTransferManager<java.lang.Void> getP2PBlobTransferManagerForDVCAndStart(int p2pTransferServerPort, int p2pTransferClientPort, java.lang.String baseDir, ClientConfig clientConfig, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats)
-
getP2PBlobTransferManagerForServerAndStart
public static BlobTransferManager<java.lang.Void> getP2PBlobTransferManagerForServerAndStart(int p2pTransferServerPort, int p2pTransferClientPort, java.lang.String baseDir, java.util.concurrent.CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewFuture, StorageMetadataService storageMetadataService, ReadOnlyStoreRepository readOnlyStoreRepository, StorageEngineRepository storageEngineRepository, int maxConcurrentSnapshotUser, int snapshotRetentionTimeInMin, int blobTransferMaxTimeoutInMin, AggVersionedBlobTransferStats aggVersionedBlobTransferStats)
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
-
-