GCSConfigurationFactory
public
class
GCSConfigurationFactory
extends ConfigurationFactory
| java.lang.Object | ||
| ↳ | com.android.tradefed.config.ConfigurationFactory | |
| ↳ | com.android.tradefed.config.gcs.GCSConfigurationFactory | |
ConfigurationFactory 会从 Google Cloud Storage 加载配置。
摘要
嵌套类 | |
|---|---|
class |
GCSConfigurationFactory.GCSConfigLoader
|
公共方法 | |
|---|---|
static
IConfigurationFactory
|
getInstance(IConfigurationServer configServer)
获取单例 |
File
|
getLatestDownloadedFile()
|
受保护的方法 | |
|---|---|
BufferedInputStream
|
getConfigStream(String name)
从 Google Cloud Storage(GCS) 加载给定配置名称的 InputStream。 |
ConfigurationDef
|
getConfigurationDef(String name, boolean isGlobal,
检索给定名称的 |
公共方法
getInstance
public static IConfigurationFactory getInstance (IConfigurationServer configServer)
获取单例 IConfigurationFactory 实例。
| 参数 | |
|---|---|
configServer |
IConfigurationServer |
| 返回 | |
|---|---|
IConfigurationFactory |
|
getLatestDownloadedFile
public File getLatestDownloadedFile ()
| 返回 | |
|---|---|
File |
|
受保护的方法
getConfigStream
protected BufferedInputStream getConfigStream (String name)
从 Google Cloud Storage(GCS) 加载给定配置名称的 InputStream。
| 参数 | |
|---|---|
name |
String:要加载的配置名称 |
| 返回 | |
|---|---|
BufferedInputStream |
用于读取配置内容的 ERROR(/BufferedInputStream) |
| 抛出 | |
|---|---|
ConfigurationException |
如果找不到配置 |
getConfigurationDef
protected ConfigurationDef getConfigurationDef (String name, boolean isGlobal,templateMap)
检索给定名称的 ConfigurationDef
| 参数 | |
|---|---|
name |
String:要加载的内置配置的名称或要加载的配置文件的文件路径 |
isGlobal |
boolean |
templateMap |
|
| 返回 | |
|---|---|
ConfigurationDef |
ConfigurationDef |
| 抛出 | |
|---|---|
ConfigurationException |
|