ByteStreamDownloader

public class ByteStreamDownloader
extends Object

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


Klient implementujący metodę Read usługi ByteStream gRPC.

Podsumowanie

Konstruktory publiczne

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

Metody publiczne

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

Pobiera obiekt BLOB za pomocą usługi zdalnej ByteStream.

Konstruktory publiczne

ByteStreamDownloader

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

Parametry
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

Metody publiczne

downloadBlob

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

Pobiera obiekt BLOB za pomocą usługi zdalnej ByteStream.

Parametry
digest Digest: skrót BLOB-a do pobrania.

out OutputStream: OutputStream, z którego pobierany jest obiekt BLOB.

Zwraca
ListenableFuture<Void>