ClusterCommandConfigBuilder
public class ClusterCommandConfigBuilder
extends Object
java.lang.Object | |
? | com.android.tradefed.cluster.ClusterCommandConfigBuilder |
Una classe per creare un file di configurazione per un comando cluster.
Riepilogo
Costruttori pubblici | |
---|---|
ClusterCommandConfigBuilder () |
Metodi pubblici | |
---|---|
File | build () Crea un file di configurazione. |
ClusterCommandConfigBuilder | setClusterCommand ( ClusterCommand command) Impostare un |
ClusterCommandConfigBuilder | setTestContext ( TestContext testContext) Impostare un |
ClusterCommandConfigBuilder | setTestEnvironment ( TestEnvironment testEnvironment) Impostare un |
ClusterCommandConfigBuilder | setTestResources ( testResources) setTestResources ( testResources) Impostare un elenco di |
ClusterCommandConfigBuilder | setWorkDir (File workDir) Imposta una directory di lavoro per un comando. |
Costruttori pubblici
ClusterCommandConfigBuilder
public ClusterCommandConfigBuilder ()
Metodi pubblici
costruire
public File build ()
Crea un file di configurazione.
ritorna | |
---|---|
File | un ERROR(/File) oggetto per un file di configurazione generato. |
tiri | |
---|---|
ConfigurationException | |
JSONException |
setClusterCommand
public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)
Impostare un ClusterCommand
oggetto.
Parametri | |
---|---|
command | ClusterCommand : un ClusterCommand oggetto. |
ritorna | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder per concatenamento. |
setTestContext
public ClusterCommandConfigBuilder setTestContext (TestContext testContext)
Impostare un TestContext
oggetto.
Parametri | |
---|---|
testContext | TestContext : un TestContext oggetto. |
ritorna | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder per concatenamento. |
setTestAmbiente
public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)
Impostare un TestEnvironment
oggetto.
Parametri | |
---|---|
testEnvironment | TestEnvironment : un TestEnvironment oggetto. |
ritorna | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder per concatenamento. |
setTestResources
public ClusterCommandConfigBuilder setTestResources (testResources)
Impostare un elenco di TestResource
oggetti.
Parametri | |
---|---|
testResources | TestResource oggetti. |
ritorna | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder per concatenamento. |
impostaDirLavoro
public ClusterCommandConfigBuilder setWorkDir (File workDir)
Imposta una directory di lavoro per un comando.
Parametri | |
---|---|
workDir | File : una directory di lavoro. |
ritorna | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder per concatenamento. |