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

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

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

Genera un file di configurazione.

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

Lanci
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Imposta un oggetto ClusterCommand.

Parametri
command ClusterCommand: un oggetto ClusterCommand.

Ritorni
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per la concatenazione.

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Imposta un oggetto TestContext.

Parametri
testContext TestContext: un oggetto TestContext.

Ritorni
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per la concatenazione.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Imposta un oggetto TestEnvironment.

Parametri
testEnvironment TestEnvironment: un oggetto TestEnvironment.

Ritorni
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per la concatenazione.

setTestResources

public ClusterCommandConfigBuilder setTestResources ( testResources)

Imposta un elenco di oggetti TestResource.

Parametri
testResources : un elenco di oggetti TestResource.

Ritorni
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per la concatenazione.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Imposta una directory di lavoro per un comando.

Parametri
workDir File: una directory di lavoro.

Ritorni
ClusterCommandConfigBuilder ClusterCommandConfigBuilder per la concatenazione.