ByteStreamUploader

public class ByteStreamUploader
extends Object

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


Klien yang menerapkan metode Write layanan gRPC ByteStream.

Ringkasan

Konstruktor publik

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

Metode publik

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

Mengupload BLOB melalui layanan ByteStream jarak jauh.

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

Mengupload file melalui layanan ByteStream jarak jauh.

Konstruktor publik

ByteStreamUploader

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

Parameter
instanceName String

channel Channel

callCredentials CallCredentials

callTimeout Duration

Metode publik

uploadBlob

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

Mengupload BLOB melalui layanan ByteStream jarak jauh.

Parameter
digest Digest: ringkasan BLOB yang akan diupload.

blob ByteString: BLOB yang akan diupload.

Hasil
ListenableFuture<Void>

uploadFile

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

Mengupload file melalui layanan ByteStream jarak jauh.

Parameter
digest Digest: ringkasan file yang akan diupload.

file File: file yang akan diupload.

Hasil
ListenableFuture<Void>