ByteStreamDownloader

public class ByteStreamDownloader
extends Object

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


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

סיכום

קונסטרוקטורים גלויים לכולם

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

שיטות ציבוריות

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

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

קונסטרוקטורים גלויים לכולם

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)

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

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

out OutputStream: ה-ERROR(/OutputStream) שאליו מתבצעת הורדת ה-BLOB.

החזרות
ListenableFuture<Void>