主機資源管理器
public interface IHostResourceManager
com.android.tradefed.host.IHostResourceManager |
管理主機資源的接口。
概括
公共方法 | |
---|---|
abstract void | cleanup () 清理主機資源。 |
abstract File | getFile (String name) 通過資源id獲取宿主資源本地文件。 |
abstract void | setup () 設置主機資源。 |
公共方法
清理
public abstract void cleanup ()
清理主機資源。
獲取文件
public abstract File getFile (String name)
通過資源id獲取宿主資源本地文件。
參數 | |
---|---|
name | String : 宿主資源的資源ID。 |
退貨 | |
---|---|
File | 宿主資源的本地文件。 |
設置
public abstract void setup ()
設置主機資源。主機資源可能來自不同的地方,遠程雲端或本地文件。該接口為 tradefed 提供了統一的方式來獲取它需要的主機資源。安裝程序應該正確地將文件下載到本地,稍後 tradefed 可以通過 getFile 通過主機資源名稱獲取本地。
投擲 | |
---|---|
| com.android.tradefed.config.ConfigurationException |
ConfigurationException |