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, עוקב אחר התצורות הכלולות מתצורת שורש אחת, וזורק חריג ב-circular include.

שיטות ציבוריות

static IConfigurationFactory getInstance ( IConfigurationServer configServer)

קבל את מופע ה- Singleton 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 עבור השם הנתון

שיטות ציבוריות

getInstance

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

קבל את מופע ה- Singleton 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