GCSHostResourceManager
public class GCSHostResourceManager
extends LocalHostResourceManager
java.lang.Object | ||
↳ | com.android.tradefed.host.LocalHostResourceManager | |
↳ | com.android.tradefed.host.gcs.GCSHostResourceManager |
從 GCS(Google 雲存儲)下載主機資源。
概括
公共構造函數 | |
---|---|
GCSHostResourceManager () |
受保護的方法 | |
---|---|
void | clearHostResource (String name, File localFile) 清除本地主機資源。 |
File | fetchHostResource (String name, String value) 從 GCS 下載主機資源到本地文件。 |
公共構造函數
GCSHostResourceManager
public GCSHostResourceManager ()
受保護的方法
清除主機資源
protected void clearHostResource (String name, File localFile)
清除本地主機資源。
參數 | |
---|---|
name | String : 宿主資源的id。 |
localFile | File :本地文件。 |
獲取主機資源
protected File fetchHostResource (String name, String value)
從 GCS 下載主機資源到本地文件。
參數 | |
---|---|
name | String :主機資源的名稱。 |
value | String :主機資源的遠程路徑。 |
退貨 | |
---|---|
File | 本地文件。 |
投擲 | |
---|---|
ConfigurationException |