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
GCS から構成を読み込み、1 つのルート構成から含まれる構成を追跡し、循環参照で例外をスローする |
パブリック メソッド | |
---|---|
static
IConfigurationFactory
|
getInstance(IConfigurationServer configServer)
シングルトン |
File
|
getLatestDownloadedFile()
|
保護されたメソッド | |
---|---|
BufferedInputStream
|
getConfigStream(String name)
指定された構成名の InputStream を Google Cloud Storage(GCS)から読み込みます。 |
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)
指定された構成名の InputStream を Google Cloud Storage(GCS)から読み込みます。
パラメータ | |
---|---|
name |
String : 読み込む構成名 |
戻り値 | |
---|---|
BufferedInputStream |
構成内容の読み取り用の ERROR(/BufferedInputStream) |
例外 | |
---|---|
ConfigurationException |
構成が見つからなかった場合 |
getConfigurationDef
protected ConfigurationDef getConfigurationDef (String name, boolean isGlobal,templateMap)
指定された名前の ConfigurationDef
を取得する
パラメータ | |
---|---|
name |
String : 読み込む組み込み構成の名前、または読み込む構成ファイルのファイルパス |
isGlobal |
boolean |
templateMap |
|
戻り値 | |
---|---|
ConfigurationDef |
ConfigurationDef |
例外 | |
---|---|
ConfigurationException |