ClusterCommand

public class ClusterCommand
extends Object

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


TF クラスターからフェッチされたタスクを表すクラス。

まとめ

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

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) 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 を返します。試行は、複数のコマンド実行を区別するために使用されるランダムに生成された GUID です。

戻り値
String試行ID

getCommandId

public String getCommandId ()

コマンド ID を返します。

戻り値
Stringコマンド ID

getCommandLine

public String getCommandLine ()

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

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

getExtraOptions

public UniqueMultiMap<String, String> getExtraOptions ()

戻り値
UniqueMultiMap <String, String>注入する追加オプションの multimap

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 : 設定するデバイス シリアルのリスト