ByteStreamDownloader

public class ByteStreamDownloader
extends Object

java.lang.Object
   ↳ com.android.tradefed.cache.remote.ByteStreamDownloader


ByteStream gRPC सेवा के Read तरीके को लागू करने वाला क्लाइंट.

खास जानकारी

पब्लिक कंस्ट्रक्टर

ByteStreamDownloader(String instanceName, Channel channel, CallCredentials callCredentials, Duration callTimeout)

सार्वजनिक तरीके

ListenableFuture<Void> downloadBlob(Digest digest, OutputStream out)

रिमोट ByteStream सेवा की मदद से BLOB डाउनलोड करता है.

पब्लिक कंस्ट्रक्टर

ByteStreamDownloader

public ByteStreamDownloader (String instanceName, 
                Channel channel, 
                CallCredentials callCredentials, 
                Duration callTimeout)

पैरामीटर
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

सार्वजनिक तरीके

downloadBlob

public ListenableFuture<Void> downloadBlob (Digest digest, 
                OutputStream out)

रिमोट ByteStream सेवा की मदद से BLOB डाउनलोड करता है.

पैरामीटर
digest Digest: डाउनलोड किए जाने वाले BLOB का डाइजेस्ट.

out OutputStream: वह ERROR(/OutputStream) जहां BLOB डाउनलोड किया गया है.

रिटर्न
ListenableFuture<Void>