GCSConfigurationServer

public class GCSConfigurationServer
extends Object implements IConfigurationServer

java.lang.Object
   ↳ com.android.tradefed.config.gcs.GCSConfigurationServer


Config server loads configs from Google Cloud Storage (GCS).

Summary

Public constructors

GCSConfigurationServer()

Public methods

InputStream getConfig(String name)

Get config content by its name.

String getCurrentHostConfig()

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

Public constructors

GCSConfigurationServer

public GCSConfigurationServer ()

Public methods

getConfig

public InputStream getConfig (String name)

Get config content by its name.

Parameters
name String: config's name

Returns
InputStream an InputStream is the config file content.

Throws
ConfigurationException

getCurrentHostConfig

public 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
ConfigurationException