ByteStreamDownloader

public class ByteStreamDownloader
extends Object

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


实现 ByteStream gRPC 服务的 Read 方法的客户端。

摘要

公共构造函数

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

公共方法

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

通过远程 ByteStream 服务下载 BLOB。

公共构造函数

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)

通过远程 ByteStream 服务下载 BLOB。

参数
digest Digest:要下载的 BLOB 的摘要。

out OutputStream:下载 BLOB 的 ERROR(/OutputStream)

返回
ListenableFuture<Void>