Package com.linkedin.venice.blobtransfer
Class ServerAndDaVinciBlobFinder
java.lang.Object
com.linkedin.venice.blobtransfer.ServerAndDaVinciBlobFinder
- All Implemented Interfaces:
BlobFinder,AutoCloseable
Discovers Da Vinci peers first and Venice servers second for client cold-start blob transfer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()discoverBlobPeers(String storeName, int version, int partitionId) This method will look through the partitions for the store and version provided until it finds the partition requested, it will then return the URL of the instances that are ready to serve in the partition.boolean
-
Constructor Details
-
ServerAndDaVinciBlobFinder
-
-
Method Details
-
discoverBlobPeers
Description copied from interface:BlobFinderThis method will look through the partitions for the store and version provided until it finds the partition requested, it will then return the URL of the instances that are ready to serve in the partition.- Specified by:
discoverBlobPeersin interfaceBlobFinder
-
shouldPreservePeerOrder
public boolean shouldPreservePeerOrder()- Specified by:
shouldPreservePeerOrderin interfaceBlobFinder
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-