ClusterCommandConfigBuilder

public class ClusterCommandConfigBuilder
extends Object

java.lang.オブジェクト
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

setClusterコマンド

public ClusterCommandConfigBuilder setClusterCommand (ClusterCommand command)

ClusterCommandオブジェクトを設定します。

パラメーター
command ClusterCommand : ClusterCommandオブジェクト。

戻り値
ClusterCommandConfigBuilder連鎖用のClusterCommandConfigBuilder

setTestContext

public ClusterCommandConfigBuilder setTestContext (TestContext testContext)

TestContextオブジェクトを設定します。

パラメーター
testContext TestContext : TestContextオブジェクト。

戻り値
ClusterCommandConfigBuilder連鎖用のClusterCommandConfigBuilder

テスト環境を設定する

public ClusterCommandConfigBuilder setTestEnvironment (TestEnvironment testEnvironment)

TestEnvironmentオブジェクトを設定します。

パラメーター
testEnvironment TestEnvironment : TestEnvironmentオブジェクト。

戻り値
ClusterCommandConfigBuilder連鎖用のClusterCommandConfigBuilder

setTestResources

public ClusterCommandConfigBuilder setTestResources ( testResources)

TestResourceオブジェクトのリストを設定します。

パラメーター
testResources : TestResourceオブジェクトのリスト。

戻り値
ClusterCommandConfigBuilder連鎖用のClusterCommandConfigBuilder

setWorkDir

public ClusterCommandConfigBuilder setWorkDir (File workDir)

コマンドの作業ディレクトリを設定します。

パラメーター
workDir File : 作業ディレクトリ。

戻り値
ClusterCommandConfigBuilder連鎖用のClusterCommandConfigBuilder