ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

java.lang.Object
com.android.tradefed.cluster.ClusterCommandConfigBuilder


Klasa do tworzenia pliku konfiguracji na potrzeby polecenia klastra.

Podsumowanie

Konstruktory publiczne

ClusterCommandConfigBuilder()

Metody publiczne

File build()

Tworzy plik konfiguracji.

ClusterCommandConfigBuilder setClusterCommand(ClusterCommand command)

Ustawia obiekt ClusterCommand.

ClusterCommandConfigBuilder setTestContext(TestContext testContext)

Ustawia obiekt TestContext.

ClusterCommandConfigBuilder setTestEnvironment(TestEnvironment testEnvironment)

Ustawia obiekt TestEnvironment.

ClusterCommandConfigBuilder setTestResources(List<TestResource> testResources)

Ustawia listę obiektów TestResource.

ClusterCommandConfigBuilder setWorkDir(File workDir)

Ustawia katalog roboczy na potrzeby polecenia.

Konstruktory publiczne

ClusterCommandConfigBuilder

public ClusterCommandConfigBuilder ()

Metody publiczne

build

public File build ()

Tworzy plik konfiguracji.

Zwraca
File obiekt File wygenerowanego pliku konfiguracji.

Zgłasza
ConfigurationException
IOException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Ustawia obiekt ClusterCommand.

Parametry
command ClusterCommand: obiekt ClusterCommand.

Zwraca
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia.

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Ustawia obiekt TestContext.

Parametry
testContext TestContext: obiekt TestContext.

Zwraca
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Ustawia obiekt TestEnvironment.

Parametry
testEnvironment TestEnvironment: obiekt TestEnvironment.

Zwraca
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia.

setTestResources

public ClusterCommandConfigBuilder setTestResources (List<TestResource> testResources)

Ustawia listę obiektów TestResource.

Parametry
testResources List: lista obiektów TestResource.

Zwraca
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Ustawia katalog roboczy na potrzeby polecenia.

Parametry
workDir File: katalog roboczy.

Zwraca
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia.