ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

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


Một lớp để tạo tệp cấu hình cho lệnh cụm.

Tóm tắt

Hàm khởi tạo công khai

ClusterCommandConfigBuilder()

Phương thức công khai

File build()

Tạo tệp cấu hình.

ClusterCommandConfigBuilder setClusterCommand(ClusterCommand command)

Đặt đối tượng ClusterCommand.

ClusterCommandConfigBuilder setTestContext(TestContext testContext)

Đặt đối tượng TestContext.

ClusterCommandConfigBuilder setTestEnvironment(TestEnvironment testEnvironment)

Đặt đối tượng TestEnvironment.

ClusterCommandConfigBuilder setTestResources( testResources)

Đặt danh sách đối tượng TestResource.

ClusterCommandConfigBuilder setWorkDir(File workDir)

Đặt thư mục công việc cho một lệnh.

Hàm khởi tạo công khai

ClusterCommandConfigBuilder

public ClusterCommandConfigBuilder ()

Phương thức công khai

build

public File build ()

Tạo tệp cấu hình.

Giá trị trả về
File đối tượng ERROR(/File) cho tệp cấu hình được tạo.

Gửi
ConfigurationException
JSONException

setClusterCommand

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

Đặt đối tượng ClusterCommand.

Tham số
command ClusterCommand: một đối tượng ClusterCommand.

Giá trị trả về
ClusterCommandConfigBuilder ClusterCommandConfigBuilder để tạo chuỗi.

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

Đặt đối tượng TestContext.

Tham số
testContext TestContext: một đối tượng TestContext.

Giá trị trả về
ClusterCommandConfigBuilder ClusterCommandConfigBuilder để tạo chuỗi.

setTestEnvironment

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

Đặt đối tượng TestEnvironment.

Tham số
testEnvironment TestEnvironment: một đối tượng TestEnvironment.

Giá trị trả về
ClusterCommandConfigBuilder ClusterCommandConfigBuilder để tạo chuỗi.

setTestResources

public ClusterCommandConfigBuilder setTestResources ( testResources)

Đặt danh sách đối tượng TestResource.

Tham số
testResources : danh sách các đối tượng TestResource.

Giá trị trả về
ClusterCommandConfigBuilder ClusterCommandConfigBuilder để tạo chuỗi.

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

Đặt thư mục công việc cho một lệnh.

Tham số
workDir File: thư mục công việc.

Giá trị trả về
ClusterCommandConfigBuilder ClusterCommandConfigBuilder để tạo chuỗi.