ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

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


Class untuk membangun file konfigurasi bagi perintah cluster.

Ringkasan

Konstruktor publik

ClusterCommandConfigBuilder()

Metode publik

File build()

Membangun file konfigurasi.

ClusterCommandConfigBuilder setClusterCommand(ClusterCommand command)

Tetapkan objek ClusterCommand.

ClusterCommandConfigBuilder setTestContext(TestContext testContext)

Tetapkan objek TestContext.

ClusterCommandConfigBuilder setTestEnvironment(TestEnvironment testEnvironment)

Tetapkan objek TestEnvironment.

ClusterCommandConfigBuilder setTestResources( testResources)

Tetapkan daftar objek TestResource.

ClusterCommandConfigBuilder setWorkDir(File workDir)

Setel direktori kerja untuk perintah.

Konstruktor publik

ClusterCommandConfigBuilder

public ClusterCommandConfigBuilder ()

Metode publik

build

public File build ()

Membangun file konfigurasi.

Hasil
File objek ERROR(/File) untuk file konfigurasi yang dihasilkan.

Menampilkan
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Tetapkan objek ClusterCommand.

Parameter
command ClusterCommand: objek ClusterCommand.

Hasil
ClusterCommandConfigBuilder ClusterCommandConfigBuilder untuk perantaian.

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Tetapkan objek TestContext.

Parameter
testContext TestContext: objek TestContext.

Hasil
ClusterCommandConfigBuilder ClusterCommandConfigBuilder untuk perantaian.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Tetapkan objek TestEnvironment.

Parameter
testEnvironment TestEnvironment: objek TestEnvironment.

Hasil
ClusterCommandConfigBuilder ClusterCommandConfigBuilder untuk perantaian.

setTestResources

public ClusterCommandConfigBuilder setTestResources ( testResources)

Tetapkan daftar objek TestResource.

Parameter
testResources : daftar objek TestResource.

Hasil
ClusterCommandConfigBuilder ClusterCommandConfigBuilder untuk perantaian.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Setel direktori kerja untuk perintah.

Parameter
workDir File: direktori kerja.

Hasil
ClusterCommandConfigBuilder ClusterCommandConfigBuilder untuk perantaian.