ByteStreamDownloader

public class ByteStreamDownloader
extends Object

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


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

Podsumowanie

Konstruktory publiczne

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

Metody publiczne

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

Pobiera 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 BLOB z usługi zdalnej ByteStream.

Parametry
digest Digest: skrót BLOB do pobrania.

out OutputStream: ERROR(/OutputStream), z którego pobierany jest BLOB.

Zwroty
ListenableFuture<Void>