ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

java.lang.Oggetto
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 oggetto ClusterCommand .

ClusterCommandConfigBuilder setTestContext ( TestContext testContext)

Impostare un oggetto TestContext .

ClusterCommandConfigBuilder setTestEnvironment ( TestEnvironment testEnvironment)

Impostare un oggetto TestEnvironment .

ClusterCommandConfigBuilder setTestResources ( testResources) setTestResources ( testResources)

Imposta un elenco di oggetti TestResource .

ClusterCommandConfigBuilder setWorkDir (File workDir)

Impostare 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 oggetto ERROR(/File) per un file di configurazione generato.

Getta
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Impostare un oggetto ClusterCommand .

Parametri
command ClusterCommand : un oggetto ClusterCommand .

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Impostare un oggetto TestContext .

Parametri
testContext TestContext : un oggetto TestContext .

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Impostare 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.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Impostare una directory di lavoro per un comando.

Parametri
workDir File : una directory di lavoro.

ritorna
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.