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

‫methods ציבוריים

static IConfigurationFactory getInstance(IConfigurationServer configServer)

קבלת מופע singleton של IConfigurationFactory.

File getLatestDownloadedFile()

שיטות מוגנות

BufferedInputStream getConfigStream(String name)

טוען InputStream עבור שם הגדרה נתון מ-Google Cloud Storage ‏(GCS).

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

מאחזרים את ConfigurationDef של השם שצוין

‫methods ציבוריים

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 BufferedInputStream לקריאת תוכן ההגדרה

הקפצת הודעות שגיאה (throw)
ConfigurationException אם לא נמצאה הגדרה

getConfigurationDef

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

מאחזרים את ConfigurationDef של השם שצוין

פרמטרים
name String: השם של תצורה מובנית לטעינה או נתיב קובץ לקובץ תצורה לטעינה

isGlobal boolean

templateMap Map

החזרות
ConfigurationDef ConfigurationDef

הקפצת הודעות שגיאה (throw)
ConfigurationException