GCS構成ファクトリー

public class GCSConfigurationFactory
extends ConfigurationFactory

java.lang.オブジェクト
com.android.tradefed.config.ConfigurationFactory
com.android.tradefed.config.gcs.GCSConfigurationFactory


ConfigurationFactoryは、Google Cloud Storage から構成を読み込みます。

まとめ

入れ子になったクラス

class GCSConfigurationFactory.GCSConfigLoader

GCS から構成をロードし、1 つのルート構成から含まれる構成を追跡し、循環インクルードで例外をスローするConfigurationFactory.ConfigLoaderの拡張機能。

パブリックメソッド

static IConfigurationFactory getInstance ( IConfigurationServer configServer)

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

File getLatestDownloadedFile ()

保護されたメソッド

BufferedInputStream getConfigStream (String name)

指定された構成名のInputStreamをGoogle Cloud Storage(GCS)からロードします。

ConfigurationDef getConfigurationDef (String name, boolean isGlobal, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap)

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

パブリックメソッド

インスタンスの取得

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

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

パラメーター
configServer IConfigurationServer

戻り値
IConfigurationFactory

最新ダウンロードファイルの取得

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