IHostResourceManager

public interface IHostResourceManager

com.android.tradefed.host.IHostResourceManager


管理主機資源的介面。

摘要

公用方法

abstract void cleanup()

清理主機資源。

abstract File getFile(String name)

根據資源 ID 取得主機資源本機檔案。

abstract void setup()

設定主機資源。

公用方法

清理

public abstract void cleanup ()

清理主機資源。

getFile

public abstract File getFile (String name)

根據資源 ID 取得主機資源本機檔案。

參數
name String:主機資源的資源 ID。

傳回
File 主機資源的本機檔案。

設定

public abstract void setup ()

設定主機資源。主機資源可能來自不同位置,例如雲端上的遠端或本機檔案。這個介面可讓 tradefed 以統一方式取得所需的主機資源。setup 應正確將檔案下載至本機,之後 tradefed 就能透過 getFile 取得本機的主機資源名稱。

擲回
com.android.tradefed.config.ConfigurationException
ConfigurationException