ByteStreamDownloader

public class ByteStreamDownloader
extends Object

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


לקוח שמטמיע את השיטה Read של שירות ה-gRPC‏ ByteStream.

סיכום

‫constructors ציבוריים

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

‫methods ציבוריים

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

הורדה של BLOB על ידי שירות ByteStream מרוחק.

‫constructors ציבוריים

ByteStreamDownloader

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

פרמטרים
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

‫methods ציבוריים

downloadBlob

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

הורדה של BLOB על ידי שירות ByteStream מרוחק.

פרמטרים
digest Digest: ה-digest של ה-BLOB להורדה.

out OutputStream: OutputStream שבו ה-BLOB מורד.

החזרות
ListenableFuture<Void>