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 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)

किसी कमांड के लिए डंप चलाते समय.

static SandboxConfigurationFactory getInstance()

सिंगलटन IConfigurationFactory इंस्टेंस पाएं.

सुरक्षित तरीके

ConfigurationDef createConfigurationDef(String name)

ConfigurationDef बनाने का इंटरनल तरीका

ConfigurationDef 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)

किसी कमांड के लिए डंप चलाते समय. खास उम्मीदों के साथ कॉन्फ़िगरेशन बनाएं.

पैरामीटर
arrayArgs String: रन के लिए कमांड लाइन.

command SandboxConfigDump.DumpCmd: डंप करने का निर्देश जारी है

रिटर्न
IConfiguration IConfiguration, VERSIONED Sandbox के लिए मान्य हो.

थ्रो
com.android.tradefed.config.ConfigurationException
ConfigurationException

getInstance

public static SandboxConfigurationFactory getInstance ()

सिंगलटन 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