ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

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


Bir küme komutu için yapılandırma dosyası oluşturmaya yönelik bir sınıf.

Özet

Kamu inşaatçıları

ClusterCommandConfigBuilder ()

Genel yöntemler

File build ()

Bir yapılandırma dosyası oluşturur.

ClusterCommandConfigBuilder setClusterCommand ( ClusterCommand command)

Bir ClusterCommand nesnesi ayarlayın.

ClusterCommandConfigBuilder setTestContext ( TestContext testContext)

Bir TestContext nesnesi ayarlayın.

ClusterCommandConfigBuilder setTestEnvironment ( TestEnvironment testEnvironment)

Bir TestEnvironment nesnesi ayarlayın.

ClusterCommandConfigBuilder setTestResources ( testResources) setTestResources ( testResources)

TestResource nesnesinin bir listesini ayarlayın.

ClusterCommandConfigBuilder setWorkDir (File workDir)

Bir komut için bir çalışma dizini ayarlayın.

Kamu inşaatçıları

ClusterCommandConfigBuilder

public ClusterCommandConfigBuilder ()

Genel yöntemler

inşa etmek

public File build ()

Bir yapılandırma dosyası oluşturur.

İadeler
File oluşturulan bir yapılandırma dosyası için bir ERROR(/File) nesnesi.

Atar
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Bir ClusterCommand nesnesi ayarlayın.

Parametreler
command ClusterCommand : bir ClusterCommand nesnesi.

İadeler
ClusterCommandConfigBuilder Zincirleme için ClusterCommandConfigBuilder .

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Bir TestContext nesnesi ayarlayın.

Parametreler
testContext TestContext : bir TestContext nesnesi.

İadeler
ClusterCommandConfigBuilder Zincirleme için ClusterCommandConfigBuilder .

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Bir TestEnvironment nesnesi ayarlayın.

Parametreler
testEnvironment TestEnvironment : bir TestEnvironment nesnesi.

İadeler
ClusterCommandConfigBuilder Zincirleme için ClusterCommandConfigBuilder .

setTestResources

public ClusterCommandConfigBuilder setTestResources ( testResources)

TestResource nesnesinin bir listesini ayarlayın.

Parametreler
testResources : TestResource nesnelerinin listesi.

İadeler
ClusterCommandConfigBuilder Zincirleme için ClusterCommandConfigBuilder .

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Bir komut için bir çalışma dizini ayarlayın.

Parametreler
workDir File : bir çalışma dizini.

İadeler
ClusterCommandConfigBuilder Zincirleme için ClusterCommandConfigBuilder .