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

Costruisce un file di configurazione.

ClusterCommandConfigBuilder setClusterCommand ( ClusterCommand command)

Imposta un oggetto ClusterCommand .

ClusterCommandConfigBuilder setTestContext ( TestContext testContext)

Imposta un oggetto TestContext .

ClusterCommandConfigBuilder setTestEnvironment ( TestEnvironment testEnvironment)

Imposta un oggetto TestEnvironment .

ClusterCommandConfigBuilder setTestResources ( testResources) setTestResources ( testResources)

Imposta un elenco di oggetti TestResource .

ClusterCommandConfigBuilder setWorkDir (File workDir)

Imposta una directory di lavoro per un comando.

Costruttori pubblici

ClusterCommandConfigBuilder

public ClusterCommandConfigBuilder ()

Metodi pubblici

costruire

public File build ()

Costruisce un file di configurazione.

ritorna
File un oggetto ERROR(/File) per un file di configurazione generato.

Lancia
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Imposta un oggetto ClusterCommand .

Parametri
command ClusterCommand : un oggetto ClusterCommand .

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setContestoTest

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Imposta un oggetto TestContext .

Parametri
testContext TestContext : un oggetto TestContext .

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Imposta un oggetto TestEnvironment .

Parametri
testEnvironment TestEnvironment : un oggetto TestEnvironment .

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestResources

public ClusterCommandConfigBuilder setTestResources ( testResources)

Imposta un elenco di oggetti TestResource .

Parametri
testResources : un elenco di oggetti TestResource .

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setDirLavoro

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Imposta una directory di lavoro per un comando.

Parametri
workDir File : una directory di lavoro.

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.