配置服务器

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