IConfigurationServer

public interface IConfigurationServer

com.android.tradefed.config.IConfigurationServer


An interface for config server.

Instead of starting with a host config file, a Tradefed instnace can start with an IConfigurationServer. A tradefed starts with IConfigurationServer will load current host's config from the remote storage and load all dependent configs as needed. Tradefed can either start with IConfigurationServer or config file, but not both.

Summary

Public methods

abstract InputStream getConfig(String name)

Get config content by its name.

abstract String getCurrentHostConfig()

Get current host's config file name for the current Tradefed session.

Public methods

getConfig

public abstract InputStream getConfig (String name)

Get config content by its name.

Parameters
name String: config's name

Returns
InputStream an ERROR(/InputStream) is the config file content.

Throws
com.android.tradefed.config.ConfigurationException
ConfigurationException

getCurrentHostConfig

public abstract String getCurrentHostConfig ()

Get current host's config file name for the current Tradefed session. Instead of reading the host config file from local files, Tradefed start with an IConfigurationServer will get the host config from the server.

Returns
String a host config file name.

Throws
com.android.tradefed.config.ConfigurationException
ConfigurationException