I配置服務器

public interface IConfigurationServer

com.android.tradefed.config.IConfigurationServer


配置服務器的接口。

Tradefed 實例可以從IConfigurationServer開始,而不是從主機配置文件開始。以IConfigurationServer開頭的 tradefed 將從遠程存儲加載當前主機的配置,並根據需要加載所有相關配置。 Tradefed 可以從IConfigurationServer或配置文件開始,但不能同時從兩者開始。

概括

公共方法

abstract InputStream getConfig (String name)

通過名稱獲取配置內容。

abstract String getCurrentHostConfig ()

獲取當前 Tradefed 會話的當前主機配置文件名。

公共方法

獲取配置

public abstract InputStream getConfig (String name)

通過名稱獲取配置內容。

參數
name String : 配置的名稱

退貨
InputStream ERROR(/InputStream)是配置文件的內容。

投擲
com.android.tradefed.config.ConfigurationException
ConfigurationException

獲取當前主機配置

public abstract String getCurrentHostConfig ()

獲取當前 Tradefed 會話的當前主機配置文件名。 Tradefed 從IConfigurationServer開始,而不是從本地文件讀取主機配置文件,將從服務器獲取主機配置。

退貨
String主機配置文件名。

投擲
com.android.tradefed.config.ConfigurationException
ConfigurationException