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 del cluster.

Riepilogo

Costruttori pubblici

ClusterCommandConfigBuilder()

Metodi pubblici

File build()

Crea 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(List<TestResource> 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

build

public File build ()

Crea un file di configurazione.

Resi
File Un oggetto File per un file di configurazione generato.

Genera
ConfigurationException
IOException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Imposta un oggetto ClusterCommand.

Parametri
command ClusterCommand: un oggetto ClusterCommand.

Resi
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Imposta un oggetto TestContext.

Parametri
testContext TestContext: un oggetto TestContext.

Resi
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Imposta un oggetto TestEnvironment.

Parametri
testEnvironment TestEnvironment: un oggetto TestEnvironment.

Resi
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setTestResources

public ClusterCommandConfigBuilder setTestResources (List<TestResource> testResources)

Imposta un elenco di oggetti TestResource.

Parametri
testResources List: un elenco di oggetti TestResource.

Resi
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Imposta una directory di lavoro per un comando.

Parametri
workDir File: una directory di lavoro.

Resi
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per il concatenamento.