クラスターコマンド
public class ClusterCommand
extends Object
java.lang.オブジェクト | |
↳ | 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) コマンドの実行を試行するターゲット デバイスのシリアルのリストを設定します。 |
パブリックコンストラクター
クラスターコマンド
public ClusterCommand (String commandId, String taskId, String cmdLine)
パラメーター | |
---|---|
commandId | String |
taskId | String |
cmdLine | String |
クラスターコマンド
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 |
getコマンドライン
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
publicgetTargetDeviceSerials ()
このコマンドが実行を試行するターゲット デバイスのシリアルのリストを返します。
戻り値 | |
---|---|
ターゲットデバイスのシリアルのリスト |
getTaskId
public String getTaskId ()
タスクIDを返します。
戻り値 | |
---|---|
String | タスクID。 |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
コマンドの実行を試行するターゲット デバイスのシリアルのリストを設定します。
パラメーター | |
---|---|
targetDeviceSerials |