ClusterCommandConfigBuilder
public class ClusterCommandConfigBuilder
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandConfigBuilder |
為集群命令構建配置文件的類。
概括
公共構造函數 | |
---|---|
ClusterCommandConfigBuilder () |
公共方法 | |
---|---|
File | build () 構建配置文件。 |
ClusterCommandConfigBuilder | setClusterCommand ( ClusterCommand command) 設置一個 |
ClusterCommandConfigBuilder | setTestContext ( TestContext testContext) 設置一個 |
ClusterCommandConfigBuilder | setTestEnvironment ( TestEnvironment testEnvironment) 設置一個 |
ClusterCommandConfigBuilder | setTestResources ( testResources) setTestResources ( testResources) 設置 |
ClusterCommandConfigBuilder | setWorkDir (File workDir) 為命令設置工作目錄。 |
公共構造函數
ClusterCommandConfigBuilder
public ClusterCommandConfigBuilder ()
公共方法
setClusterCommand
public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)
設置一個ClusterCommand
對象。
參數 | |
---|---|
command | ClusterCommand :一個ClusterCommand 對象。 |
退貨 | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder 用於鏈接。 |
設置測試環境
public ClusterCommandConfigBuilder setTestContext (TestContext testContext)
設置一個TestContext
對象。
參數 | |
---|---|
testContext | TestContext :一個TestContext 對象。 |
退貨 | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder 用於鏈接。 |
設置測試環境
public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)
設置一個TestEnvironment
對象。
參數 | |
---|---|
testEnvironment | TestEnvironment :一個TestEnvironment 對象。 |
退貨 | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder 用於鏈接。 |
設置測試資源
public ClusterCommandConfigBuilder setTestResources (testResources)
設置TestResource
對象的列表。
參數 | |
---|---|
testResources | TestResource 對象的列表。 |
退貨 | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder 用於鏈接。 |
設置工作目錄
public ClusterCommandConfigBuilder setWorkDir (File workDir)
為命令設置工作目錄。
參數 | |
---|---|
workDir | File :工作目錄。 |
退貨 | |
---|---|
ClusterCommandConfigBuilder | ClusterCommandConfigBuilder 用於鏈接。 |