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