ClusterCommand
public class ClusterCommand
extends Object
java.lang.Obiekt | |
↳ | com.android.tradefed.cluster.ClusterCommand |
Klasa reprezentująca zadanie pobrane z klastra TF.
Streszczenie
Konstruktory publiczne | |
---|---|
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) Konstruktor. |
Metody publiczne | |
---|---|
static ClusterCommand | fromJson (JSONObject json) |
String | getAttemptId () Zwraca identyfikator próby. |
String | getCommandId () Zwraca identyfikator polecenia. |
String | getCommandLine () Zwraca ciąg wiersza poleceń. |
UniqueMultiMap <String, String> | getExtraOptions () |
String | getRequestId () Zwraca identyfikator żądania. |
ClusterCommand.RequestType | getRequestType () Zwraca typ żądania |
Integer | getShardCount () Zwraca liczbę odłamków. |
Integer | getShardIndex () Zwraca indeks fragmentu. |
getTargetDeviceSerials () Zwraca listę numerów seryjnych urządzeń docelowych, na których to polecenie spróbuje uruchomić. | |
String | getTaskId () Zwraca identyfikator zadania. |
void | setTargetDeviceSerials ( targetDeviceSerials) setTargetDeviceSerials ( targetDeviceSerials) Ustawia listę numerów seryjnych urządzeń docelowych, na których polecenie będzie próbowało uruchomić. |
Konstruktory publiczne
ClusterCommand
public ClusterCommand (String commandId, String taskId, String cmdLine)
Parametry | |
---|---|
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)
Konstruktor.
Parametry | |
---|---|
requestId | String : Identyfikator żądania |
commandId | String : Identyfikator polecenia, które uruchomiło to zadanie |
taskId | String : Identyfikator tego zadania |
cmdLine | String : wiersz polecenia do uruchomienia |
attemptId | String |
requestType | ClusterCommand.RequestType : Typ żądania |
shardCount | Integer : Liczba odłamków |
shardIndex | Integer : Indeks fragmentu |
Metody publiczne
od Jsona
public static ClusterCommand fromJson (JSONObject json)
Parametry | |
---|---|
json | JSONObject |
Zwroty | |
---|---|
ClusterCommand |
Rzuty | |
---|---|
JSONException |
getAttemptId
public String getAttemptId ()
Zwraca identyfikator próby. Próba jest losowo generowanym identyfikatorem GUID używanym do rozróżniania wielu uruchomień poleceń.
Zwroty | |
---|---|
String | identyfikator próby |
getCommandId
public String getCommandId ()
Zwraca identyfikator polecenia.
Zwroty | |
---|---|
String | identyfikator polecenia |
getCommandLine
public String getCommandLine ()
Zwraca ciąg wiersza poleceń.
Zwroty | |
---|---|
String | ciąg wiersza poleceń. |
pobierz dodatkowe opcje
public UniqueMultiMap<String, String> getExtraOptions ()
Zwroty | |
---|---|
UniqueMultiMap <String, String> | multimapa dodatkowych opcji do wstrzyknięcia |
getRequestId
public String getRequestId ()
Zwraca identyfikator żądania.
Zwroty | |
---|---|
String | identyfikator żądania |
getRequestType
public ClusterCommand.RequestType getRequestType ()
Zwraca typ żądania
Zwroty | |
---|---|
ClusterCommand.RequestType | typ żądania |
getShardCount
public Integer getShardCount ()
Zwraca liczbę odłamków.
Zwroty | |
---|---|
Integer | liczba odłamków. |
getShardIndex
public Integer getShardIndex ()
Zwraca indeks fragmentu.
Zwroty | |
---|---|
Integer | indeks fragmentu. |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
Zwraca listę numerów seryjnych urządzeń docelowych, na których to polecenie spróbuje uruchomić.
Zwroty | |
---|---|
lista numerów seryjnych urządzeń docelowych |
getTaskId
public String getTaskId ()
Zwraca identyfikator zadania.
Zwroty | |
---|---|
String | identyfikator zadania. |
ustaw numery seryjne urządzenia docelowego
public void setTargetDeviceSerials (targetDeviceSerials)
Ustawia listę numerów seryjnych urządzeń docelowych, na których polecenie będzie próbowało uruchomić.
Parametry | |
---|---|
targetDeviceSerials |