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

ConfigurationFactory.ConfigLoader の拡張。GCS から構成を読み込み、1 つのルート構成から含まれる構成を追跡し、循環的な包含で例外をスローします。 

パブリック メソッド

static IConfigurationFactory getInstance(IConfigurationServer configServer)

シングルトンの IConfigurationFactory インスタンスを取得します。

File getLatestDownloadedFile()

保護されたメソッド

BufferedInputStream getConfigStream(String name)

指定された構成名の InputStream を Google Cloud Storage(GCS)から読み込みます。

ConfigurationDef getConfigurationDef(String name, boolean isGlobal, Map<String, String> templateMap)

指定された名前の ConfigurationDef を取得します。

パブリック メソッド

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 構成コンテンツを読み取るための BufferedInputStream

例外
ConfigurationException 構成が見つからなかった場合

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                Map<String, String> templateMap)

指定された名前の ConfigurationDef を取得します。

パラメータ
name String: 読み込む組み込み構成の名前、または読み込む構成ファイルへのファイルパス

isGlobal boolean

templateMap Map

戻り値
ConfigurationDef ConfigurationDef

例外
ConfigurationException