ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

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


為集群命令構建配置文件的類。

概括

公共構造函數

ClusterCommandConfigBuilder ()

公共方法

File build ()

構建配置文件。

ClusterCommandConfigBuilder setClusterCommand ( ClusterCommand command)

設置一個ClusterCommand對象。

ClusterCommandConfigBuilder setTestContext ( TestContext testContext)

設置一個TestContext對象。

ClusterCommandConfigBuilder setTestEnvironment ( TestEnvironment testEnvironment)

設置一個TestEnvironment對象。

ClusterCommandConfigBuilder setTestResources ( testResources) setTestResources ( testResources)

設置TestResource對象的列表。

ClusterCommandConfigBuilder setWorkDir (File workDir)

為命令設置工作目錄。

公共構造函數

ClusterCommandConfigBuilder

public ClusterCommandConfigBuilder ()

公共方法

建造

public File build ()

構建配置文件。

退貨
File生成的配置文件的ERROR(/File)對象。

投擲
ConfigurationException
JSONException

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用於鏈接。