ByteStreamUploader

public class ByteStreamUploader
extends Object

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


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

סיכום

‫constructors ציבוריים

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

‫methods ציבוריים

ListenableFuture<Void> uploadBlob(Digest digest, ByteString blob)

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

ListenableFuture<Void> uploadFile(Digest digest, File file)

העלאת קובץ באמצעות שירות ByteStream מרוחק.

‫constructors ציבוריים

ByteStreamUploader

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

פרמטרים
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

‫methods ציבוריים

uploadBlob

public ListenableFuture<Void> uploadBlob (Digest digest, 
                ByteString blob)

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

פרמטרים
digest Digest: ה-digest של ה-BLOB להעלאה.

blob ByteString: ה-BLOB להעלאה.

החזרות
ListenableFuture<Void>

uploadFile

public ListenableFuture<Void> uploadFile (Digest digest, 
                File file)

העלאת קובץ באמצעות שירות ByteStream מרוחק.

פרמטרים
digest Digest: הגיבוב של הקובץ להעלאה.

file File: הקובץ להעלאה.

החזרות
ListenableFuture<Void>