叢集命令配置產生器

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)

設定指令的工作目錄。

公共構造函數

叢集命令配置產生器

public ClusterCommandConfigBuilder ()

公共方法

建造

public File build ()

建置設定檔。

退貨
File產生的設定檔的ERROR(/File)物件。

投擲
ConfigurationException
JSONException

設定集群命令

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

設定ClusterCommand物件。

參數
command ClusterCommandClusterCommand物件。

退貨
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物件的清單。

參數
testResourcesTestResource物件的列表。

退貨
ClusterCommandConfigBuilder用於連結的ClusterCommandConfigBuilder

設定工作目錄

public ClusterCommandConfigBuilder setWorkDir (File workDir)

設定指令的工作目錄。

參數
workDir File :工作目錄。

退貨
ClusterCommandConfigBuilder用於連結的ClusterCommandConfigBuilder