ClusterCommand

public class ClusterCommand
extends Object

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommand


TF Cluster から取得されたタスクを表すクラス。

概要

パブリック コンストラクタ

ClusterCommand(String commandId, String taskId, String cmdLine)
ClusterCommand(String requestId, String commandId, String taskId, String cmdLine, String attemptId, ClusterCommand.RequestType requestType, Integer shardCount, Integer shardIndex)

コンストラクタ。

パブリック メソッド

static ClusterCommand fromJson(JSONObject json)
String getAttemptId()

試行 ID を返します。

String getCommandId()

コマンド ID を返します。

String getCommandLine()

コマンドライン文字列を返します。

UniqueMultiMap<String, String> getExtraOptions()
String getRequestId()

リクエスト ID を返します。

ClusterCommand.RequestType getRequestType()

リクエストの種類を返します

Integer getShardCount()

シャードの数を返します。

Integer getShardIndex()

シャード インデックスを返します。

getTargetDeviceSerials()

このコマンドが実行を試みるターゲット デバイスのシリアル番号のリストを返します。

String getTaskId()

タスク ID を返します。

void setTargetDeviceSerials( targetDeviceSerials)

コマンドを実行するターゲット デバイスのシリアル番号のリストを設定します。

パブリック コンストラクタ

ClusterCommand

public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)

パラメータ
commandId String

taskId String

cmdLine String

ClusterCommand

public ClusterCommand (String requestId, 
                String commandId, 
                String taskId, 
                String cmdLine, 
                String attemptId, 
                ClusterCommand.RequestType requestType, 
                Integer shardCount, 
                Integer shardIndex)

コンストラクタ。

パラメータ
requestId String: リクエスト ID

commandId String: このタスクを発行したコマンドの ID

taskId String: このタスクの ID

cmdLine String: 実行するコマンドライン

attemptId String

requestType ClusterCommand.RequestType: リクエストの種類

shardCount Integer: シャード数

shardIndex Integer: シャード インデックス

パブリック メソッド

fromJson

public static ClusterCommand fromJson (JSONObject json)

パラメータ
json JSONObject

戻り値
ClusterCommand

例外
JSONException

getAttemptId

public String getAttemptId ()

試行 ID を返します。attempt は、複数のコマンドの実行を区別するために使用されるランダムに生成された GUID です。

戻り値
String 試行 ID

getCommandId

public String getCommandId ()

コマンド ID を返します。

戻り値
String コマンド ID

getCommandLine

public String getCommandLine ()

コマンドライン文字列を返します。

戻り値
String コマンドライン文字列。

getExtraOptions

public UniqueMultiMap<String, String> getExtraOptions ()

戻り値
UniqueMultiMap<String, String> 挿入する追加オプションのマルチマップ

getRequestId

public String getRequestId ()

リクエスト ID を返します。

戻り値
String リクエスト ID

getRequestType

public ClusterCommand.RequestType getRequestType ()

リクエストの種類を返します。

戻り値
ClusterCommand.RequestType リクエストの種類

getShardCount

public Integer getShardCount ()

シャードの数を返します。

戻り値
Integer シャード数。

getShardIndex

public Integer getShardIndex ()

シャード インデックスを返します。

戻り値
Integer シャード インデックス。

getTargetDeviceSerials

public  getTargetDeviceSerials ()

このコマンドが実行を試みるターゲット デバイスのシリアル番号のリストを返します。

戻り値
対象デバイスのシリアル番号のリスト

getTaskId

public String getTaskId ()

タスク ID を返します。

戻り値
String タスク ID。

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

コマンドを実行するターゲット デバイスのシリアル番号のリストを設定します。

パラメータ
targetDeviceSerials : 設定するデバイスのシリアル番号のリスト