GCSHostResourceManager

public class GCSHostResourceManager
extends LocalHostResourceManager

java.lang.Object
   ↳ com.android.tradefed.host.LocalHostResourceManager
     ↳ com.android.tradefed.host.gcs.GCSHostResourceManager


从 GCS(Google Cloud Storage)下载主机资源。

摘要

公共构造函数

GCSHostResourceManager()

受保护的方法

void clearHostResource(String name, File localFile)

清除本地主机资源。

File fetchHostResource(String name, String value)

将主机资源从 GCS 下载到本地文件。

公共构造函数

GCSHostResourceManager

public GCSHostResourceManager ()

受保护的方法

clearHostResource

protected void clearHostResource (String name, 
                File localFile)

清除本地主机资源。

参数
name String:主机资源的 ID。

localFile File:本地文件。

fetchHostResource

protected File fetchHostResource (String name, 
                String value)

将主机资源从 GCS 下载到本地文件。

参数
name String:宿主资源的名称。

value String:主机资源的远程路径。

返回
File 本地文件。

抛出
ConfigurationException