SandboxConfigurationFactory

public class SandboxConfigurationFactory
extends ConfigurationFactory

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


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

TODO: פצל את חלק ה-dump של התצורה למחלקה אחרת

סיכום

שדות

public static final OPTION_IGNORED_ELEMENTS

בנאים ציבוריים

SandboxConfigurationFactory ()

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

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, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap)

אחזר את ConfigurationDef עבור השם הנתון

שדות

OPTION_IGNORED_ELEMENTS

public static final  OPTION_IGNORED_ELEMENTS

בנאים ציבוריים

SandboxConfigurationFactory

public SandboxConfigurationFactory ()

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

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 תקפה עבור ארגז החול.

זורק
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 תקפה עבור ארגז החול.

זורק
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

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

בעת הפעלת ה-dump עבור פקודה. צור תצורה עם ציפיות ספציפיות.

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

command SandboxConfigDump.DumpCmd : פקודת ה-dump מתבצעת

החזרות
IConfiguration IConfiguration תקפה עבור ארגז החול VERSIONED.

זורק
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, 
                 templateMap)

אחזר את ConfigurationDef עבור השם הנתון

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

isGlobal boolean

templateMap

החזרות
ConfigurationDef ConfigurationDef

זורק
ConfigurationException