IClusterClient
public interface IClusterClient
com.android.tradefed.cluster.IClusterClient |
TFC バックエンドと対話するためのインターフェース。
まとめ
公開メソッド |
---|
abstract IClusterEventUploader < ClusterCommandEvent > | getCommandEventUploader () ClusterCommandEvent のアップロードに使用できるIClusterEventUploader 取得します。 |
abstract ClusterCommand.State | getCommandState (String requestId, String commandId) クラスター コマンドの状態を確認します。 |
default ClusterCommandStatus | getCommandStatus (String requestId, String commandId) クラスター コマンドのコマンド ステータスを取得します (キャンセルされた場合は、状態とキャンセル理由)。 |
abstract IClusterEventUploader < ClusterHostEvent > | getHostEventUploader () ClusterHostEvent のアップロードに使用できるIClusterEventUploader 取得します。 |
abstract TestContext | getTestContext (String requestId, String commandId) |
abstract TestEnvironment | getTestEnvironment (String requestId) リクエストのTestEnvironment を取得します。 |
abstract | getTestResources (String requestId) リクエストのTestResource を取得します。 |
abstract | leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) leaseHostCommands (String clusterId, String hostname, devices, nextClusterIds, int maxTasksTolease) 指定したホストのClusterCommand をリースします。 |
abstract void | updateTestContext (String requestId, String commandId, TestContext testContext) |
定数
TYPE_NAME
public static final String TYPE_NAME
一意の構成オブジェクト タイプ名。 GlobalConfiguration
からシングルトン インスタンスを取得するために使用されます。
定数値: "cluster_client"
公開メソッド
getCommandState
public abstract ClusterCommand.State getCommandState (String requestId,
String commandId)
クラスター コマンドの状態を確認します。
パラメーター |
---|
requestId | String : クラスタ リクエスト ID |
commandId | String : クラスタ コマンド ID |
getCommandStatus
public ClusterCommandStatus getCommandStatus (String requestId,
String commandId)
クラスター コマンドのコマンド ステータスを取得します (キャンセルされた場合は、状態とキャンセル理由)。
パラメーター |
---|
requestId | String : クラスタ リクエスト ID |
commandId | String : クラスタ コマンド ID |
getTestContext
public abstract TestContext getTestContext (String requestId,
String commandId)
パラメーター |
---|
requestId | String |
commandId | String |
getTestEnvironment
public abstract TestEnvironment getTestEnvironment (String requestId)
リクエストのTestEnvironment
を取得します。
スロー |
---|
| IO例外 |
| org.json.JSONException |
JSONException | |
getTestResources
public abstract getTestResources (String requestId)
リクエストのTestResource
を取得します。
スロー |
---|
| IO例外 |
| org.json.JSONException |
JSONException | |
leaseHost コマンド
public abstract leaseHostCommands (String clusterId,
String hostname,
devices,
nextClusterIds,
int maxTasksTolease)
指定したホストのClusterCommand
をリースします。
パラメーター |
---|
clusterId | String : ホストのクラスター ID |
hostname | String : ホスト名 |
devices | : ホストが持つ deviceInfos |
nextClusterIds | : コマンドをリースする次のクラスター ID のリスト。 |
maxTasksTolease | int : 現在リースできるタスクの最大数 |
スロー |
---|
| org.json.JSONException |
JSONException | |
updateTestContext
public abstract void updateTestContext (String requestId,
String commandId,
TestContext testContext)
パラメーター |
---|
requestId | String |
commandId | String |
testContext | TestContext |