SandboxConfigurationFactory

public class SandboxConfigurationFactory
extends ConfigurationFactory

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


Spezielle Konfigurations-Factory zum Erstellen von Konfigurationen für Sandbox-Zwecke.

TODO: Split the configuration dump part to another class

Zusammenfassung

Felder

public static final OPTION_IGNORED_ELEMENTS

Öffentliche Konstruktoren

SandboxConfigurationFactory()

Öffentliche Methoden

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

Erstellen Sie eine IConfiguration anhand der bereitgestellten Befehlszeile und Sandbox.

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

Erstellen Sie eine IConfiguration anhand der bereitgestellten Befehlszeile und Sandbox.

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

Beim Ausführen des Dumps für einen Befehl

static SandboxConfigurationFactory getInstance()

Rufen Sie die Singleton-Instanz IConfigurationFactory ab.

Geschützte Methoden

ConfigurationDef createConfigurationDef(String name)

Interne Methode zum Erstellen von ConfigurationDef

ConfigurationDef getConfigurationDef(String name, boolean isGlobal, templateMap)

ConfigurationDef für den angegebenen Namen abrufen

Felder

OPTION_IGNORED_ELEMENTS

public static final  OPTION_IGNORED_ELEMENTS

Öffentliche Konstruktoren

SandboxConfigurationFactory

public SandboxConfigurationFactory ()

Öffentliche Methoden

createConfigurationFromArgs

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

Erstellen Sie eine IConfiguration anhand der bereitgestellten Befehlszeile und Sandbox.

Parameter
args String: die Befehlszeile für die Ausführung.

keyStoreClient IKeyStoreClient: der IKeyStoreClient, von dem der Schlüssel geladen werden soll.

sandbox ISandbox: Der für die Ausführung verwendete ISandbox.

runUtil IRunUtil: IRunUtil, um Befehle auszuführen.

Returns
IConfiguration einen IConfiguration, der für die Sandbox gültig ist.

Ausgabe
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

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

Erstellen Sie eine IConfiguration anhand der bereitgestellten Befehlszeile und Sandbox.

Parameter
args String: die Befehlszeile für die Ausführung.

keyStoreClient IKeyStoreClient: der IKeyStoreClient, von dem der Schlüssel geladen werden soll.

sandbox ISandbox: Der für die Ausführung verwendete ISandbox.

runUtil IRunUtil: IRunUtil, um Befehle auszuführen.

globalConfig File

skipJavaCheck boolean

Returns
IConfiguration einen IConfiguration, der für die Sandbox gültig ist.

Ausgabe
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

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

Beim Ausführen des Dumps für einen Befehl Erstellen Sie eine Konfiguration mit bestimmten Erwartungen.

Parameter
arrayArgs String: die Befehlszeile für die Ausführung.

command SandboxConfigDump.DumpCmd: Der laufende Dump-Befehl

Returns
IConfiguration einen IConfiguration, der für die VERSIONED-Sandbox gültig ist.

Ausgabe
com.android.tradefed.config.ConfigurationException
ConfigurationException

getInstance

public static SandboxConfigurationFactory getInstance ()

Rufen Sie die Singleton-Instanz IConfigurationFactory ab.

Returns
SandboxConfigurationFactory

Geschützte Methoden

createConfigurationDef

protected ConfigurationDef createConfigurationDef (String name)

Interne Methode zum Erstellen von ConfigurationDef

Parameter
name String

Returns
ConfigurationDef

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                 templateMap)

ConfigurationDef für den angegebenen Namen abrufen

Parameter
name String: der Name einer integrierten Konfiguration, die geladen werden soll, oder ein Dateipfad zur zu ladenden Konfigurationsdatei

isGlobal boolean

templateMap

Returns
ConfigurationDef ConfigurationDef

Ausgabe
ConfigurationException