ClusterCommandConfigBuilder
public class ClusterCommandConfigBuilder
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandConfigBuilder |
Một lớp để xây dựng tệp cấu hình cho lệnh cụm.
Bản tóm tắt
Nhà thầu xây dựng công cộng | |
---|---|
ClusterCommandConfigBuilder () |
Phương pháp công khai | |
---|---|
File | build () Xây dựng một tập tin cấu hình. |
ClusterCommandConfigBuilder | setClusterCommand ( ClusterCommand command) Đặt đối tượng |
ClusterCommandConfigBuilder | setTestContext ( TestContext testContext) Đặt đối tượng |
ClusterCommandConfigBuilder | setTestEnvironment ( TestEnvironment testEnvironment) Đặt đối tượng |
ClusterCommandConfigBuilder | setTestResources ( testResources) setTestResources ( testResources) Đặt danh sách đối tượng |
ClusterCommandConfigBuilder | setWorkDir (File workDir) Đặt thư mục làm việc cho lệnh. |
Nhà thầu xây dựng công cộng
ClusterCommandConfigBuilder
public ClusterCommandConfigBuilder ()
Phương pháp công khai
xây dựng
public File build ()
Xây dựng một tập tin cấu hình.
Trả lại | |
---|---|
File | một đối tượng ERROR(/File) cho tệp cấu hình được tạo. |
Ném | |
---|---|
ConfigurationException | |
JSONException |
setClusterCommand
public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)
Đặt đối tượng ClusterCommand
.
Thông số | |
---|---|
command | ClusterCommand : một đối tượng ClusterCommand . |
Trả lại | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder để tạo chuỗi. |
setTestContext
public ClusterCommandConfigBuilder setTestContext (TestContext testContext)
Đặt đối tượng TestContext
.
Thông số | |
---|---|
testContext | TestContext : một đối tượng TestContext . |
Trả lại | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder để tạo chuỗi. |
setTestEnvironment
public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)
Đặt đối tượng TestEnvironment
.
Thông số | |
---|---|
testEnvironment | TestEnvironment : một đối tượng TestEnvironment . |
Trả lại | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder để tạo chuỗi. |
setTestResources
public ClusterCommandConfigBuilder setTestResources (testResources)
Đặt danh sách đối tượng TestResource
.
Thông số | |
---|---|
testResources | TestResource . |
Trả lại | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder để tạo chuỗi. |
setWorkDir
public ClusterCommandConfigBuilder setWorkDir (File workDir)
Đặt thư mục làm việc cho lệnh.
Thông số | |
---|---|
workDir | File : một thư mục làm việc. |
Trả lại | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder để tạo chuỗi. |