ClusterCommand
public class ClusterCommand
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommand |
TFクラスターからフェッチされたタスクを表すクラス。
概要
ネストされたクラス | |
---|---|
enum | ClusterCommand.RequestType |
enum | ClusterCommand.State 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> | 注入する追加オプションのマルチマップ |
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.