Konstruktor konfiguracji klastraCommandConfig

public class ClusterCommandConfigBuilder
extends Object

Obiekt Java.lang.Object
com.android.tradefed.cluster.ClusterCommandConfigBuilder


Klasa służąca do tworzenia pliku konfiguracyjnego dla polecenia klastra.

Streszczenie

Konstruktorzy publiczni

ClusterCommandConfigBuilder ()

Metody publiczne

File build ()

Tworzy plik konfiguracyjny.

ClusterCommandConfigBuilder setClusterCommand ( ClusterCommand command)

Ustaw obiekt ClusterCommand .

ClusterCommandConfigBuilder setTestContext ( TestContext testContext)

Ustaw obiekt TestContext .

ClusterCommandConfigBuilder setTestEnvironment ( TestEnvironment testEnvironment)

Ustaw obiekt TestEnvironment .

ClusterCommandConfigBuilder setTestResources ( testResources) setTestResources ( testResources)

Ustaw listę obiektu TestResource .

ClusterCommandConfigBuilder setWorkDir (File workDir)

Ustaw katalog roboczy dla polecenia.

Konstruktorzy publiczni

Konstruktor konfiguracji klastraCommandConfig

public ClusterCommandConfigBuilder ()

Metody publiczne

zbudować

public File build ()

Tworzy plik konfiguracyjny.

Zwroty
File obiekt ERROR(/File) dla wygenerowanego pliku konfiguracyjnego.

Rzuca
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Ustaw obiekt ClusterCommand .

Parametry
command ClusterCommand : obiekt ClusterCommand .

Zwroty
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia łańcuchowego.

ustawKontekstTestowy

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Ustaw obiekt TestContext .

Parametry
testContext TestContext : obiekt TestContext .

Zwroty
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia łańcuchowego.

ustaw środowisko testowe

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Ustaw obiekt TestEnvironment .

Parametry
testEnvironment TestEnvironment : obiekt TestEnvironment .

Zwroty
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia łańcuchowego.

zestaw zasobów testowych

public ClusterCommandConfigBuilder setTestResources ( testResources)

Ustaw listę obiektu TestResource .

Parametry
testResources : lista obiektów TestResource .

Zwroty
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia łańcuchowego.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Ustaw katalog roboczy dla polecenia.

Parametry
workDir File : katalog roboczy.

Zwroty
ClusterCommandConfigBuilder ClusterCommandConfigBuilder do łączenia łańcuchowego.