SandboxConfigurationFactory

public class SandboxConfigurationFactory
extends ConfigurationFactory

java.lang.Object
   ↳ com.android.tradefed.config.ConfigurationFactory
     ↳ com.android.tradefed.config.SandboxConfigurationFactory


מפעל מיוחד להגדרות שנועד לטפל ביצירת הגדרות לצורך ארגז חול.

TODO: Split the configuration dump part to another class

סיכום

שדות

public static final Set<String> OPTION_IGNORED_ELEMENTS

‫constructors ציבוריים

SandboxConfigurationFactory()

‫methods ציבוריים

IConfiguration createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)

יוצרים IConfiguration על סמך שורת הפקודה וארגז החול שסופקו.

IConfiguration createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig, boolean skipJavaCheck)

יוצרים IConfiguration על סמך שורת הפקודה וארגז החול שסופקו.

IConfiguration createConfigurationFromArgs(String[] arrayArgs, SandboxConfigDump.DumpCmd command)

כשמריצים את ה-dump עבור פקודה.

static SandboxConfigurationFactory getInstance()

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

שיטות מוגנות

ConfigurationDef createConfigurationDef(String name)

שיטה פנימית ליצירת ConfigurationDef

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

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

שדות

OPTION_IGNORED_ELEMENTS

public static final Set<String> OPTION_IGNORED_ELEMENTS

‫constructors ציבוריים

SandboxConfigurationFactory

public SandboxConfigurationFactory ()

‫methods ציבוריים

createConfigurationFromArgs

public IConfiguration createConfigurationFromArgs (String[] args, 
                IKeyStoreClient keyStoreClient, 
                ISandbox sandbox, 
                IRunUtil runUtil)

יוצרים IConfiguration על סמך שורת הפקודה וארגז החול שסופקו.

פרמטרים
args String: שורת הפקודה להרצה.

keyStoreClient IKeyStoreClient: IKeyStoreClient המקום שממנו רוצים לטעון את המפתח.

sandbox ISandbox: ISandbox שנעשה בו שימוש בהרצה.

runUtil IRunUtil: IRunUtil להרצת פקודות.

החזרות
IConfiguration IConfiguration שתקף לארגז החול.

הקפצת הודעות שגיאה (throw)
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

public IConfiguration createConfigurationFromArgs (String[] args, 
                IKeyStoreClient keyStoreClient, 
                ISandbox sandbox, 
                IRunUtil runUtil, 
                File globalConfig, 
                boolean skipJavaCheck)

יוצרים IConfiguration על סמך שורת הפקודה וארגז החול שסופקו.

פרמטרים
args String: שורת הפקודה להרצה.

keyStoreClient IKeyStoreClient: IKeyStoreClient המקום שממנו רוצים לטעון את המפתח.

sandbox ISandbox: ISandbox שנעשה בו שימוש בהרצה.

runUtil IRunUtil: IRunUtil להרצת פקודות.

globalConfig File

skipJavaCheck boolean

החזרות
IConfiguration IConfiguration שתקף לארגז החול.

הקפצת הודעות שגיאה (throw)
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

public IConfiguration createConfigurationFromArgs (String[] arrayArgs, 
                SandboxConfigDump.DumpCmd command)

כשמריצים את ה-dump עבור פקודה. יוצרים הגדרה עם ציפיות ספציפיות.

פרמטרים
arrayArgs String: שורת הפקודה להרצה.

command SandboxConfigDump.DumpCmd: פקודת ה-dump בתהליך

החזרות
IConfiguration IConfiguration תקף לארגז החול עם הגרסה.

הקפצת הודעות שגיאה (throw)
com.android.tradefed.config.ConfigurationException
ConfigurationException

getInstance

public static SandboxConfigurationFactory getInstance ()

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

החזרות
SandboxConfigurationFactory

שיטות מוגנות

createConfigurationDef

protected ConfigurationDef createConfigurationDef (String name)

שיטה פנימית ליצירת ConfigurationDef

פרמטרים
name String

החזרות
ConfigurationDef

getConfigurationDef

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

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

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

isGlobal boolean

templateMap Map

החזרות
ConfigurationDef ConfigurationDef

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