ClusterCommand
public
class
ClusterCommand
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.ClusterCommand |
Klasa reprezentująca zadanie pobrane z klastra TF.
Podsumowanie
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ę fragmentów. |
Integer
|
getShardIndex()
Zwraca indeks fragmentu. |
List<String>
|
getTargetDeviceSerials()
Zwraca listę numerów seryjnych urządzeń docelowych, na których to polecenie będzie próbowało się uruchomić. |
String
|
getTaskId()
Zwraca identyfikator zadania. |
void
|
setTargetDeviceSerials(List<String> targetDeviceSerials)
Ustawia listę numerów seryjnych urządzeń docelowych, na których polecenie będzie próbowało się 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 wydało to zadanie |
taskId |
String: identyfikator tego zadania |
cmdLine |
String: wiersz poleceń do uruchomienia |
attemptId |
String |
requestType |
ClusterCommand.RequestType: typ prośby |
shardCount |
Integer: liczba fragmentów |
shardIndex |
Integer: indeks fragmentu |
Metody publiczne
fromJson
public static ClusterCommand fromJson (JSONObject json)
| Parametry | |
|---|---|
json |
JSONObject |
| Zwraca | |
|---|---|
ClusterCommand |
|
| Zgłasza | |
|---|---|
JSONException |
|
getAttemptId
public String getAttemptId ()
Zwraca identyfikator próby. Próba to losowo wygenerowany identyfikator GUID używany do odróżniania wielu uruchomień poleceń.
| Zwraca | |
|---|---|
String |
identyfikator próby, |
getCommandId
public String getCommandId ()
Zwraca identyfikator polecenia.
| Zwraca | |
|---|---|
String |
identyfikator polecenia, |
getCommandLine
public String getCommandLine ()
Zwraca ciąg wiersza poleceń.
| Zwraca | |
|---|---|
String |
ciąg znaków wiersza poleceń. |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
| Zwraca | |
|---|---|
UniqueMultiMap<String, String> |
multimap dodatkowych opcji do wstrzyknięcia. |
getRequestId
public String getRequestId ()
Zwraca identyfikator żądania.
| Zwraca | |
|---|---|
String |
identyfikator żądania, |
getRequestType
public ClusterCommand.RequestType getRequestType ()
Zwraca typ żądania.
| Zwraca | |
|---|---|
ClusterCommand.RequestType |
typ żądania, |
getShardCount
public Integer getShardCount ()
Zwraca liczbę fragmentów.
| Zwraca | |
|---|---|
Integer |
liczbę fragmentów. |
getShardIndex
public Integer getShardIndex ()
Zwraca indeks fragmentu.
| Zwraca | |
|---|---|
Integer |
indeks fragmentu. |
getTargetDeviceSerials
public List<String> getTargetDeviceSerials ()
Zwraca listę numerów seryjnych urządzeń docelowych, na których to polecenie będzie próbowało się uruchomić.
| Zwraca | |
|---|---|
List<String> |
lista numerów seryjnych urządzeń docelowych; |
getTaskId
public String getTaskId ()
Zwraca identyfikator zadania.
| Zwraca | |
|---|---|
String |
identyfikator zadania. |
setTargetDeviceSerials
public void setTargetDeviceSerials (List<String> targetDeviceSerials)
Ustawia listę numerów seryjnych urządzeń docelowych, na których polecenie będzie próbowało się uruchomić.
| Parametry | |
|---|---|
targetDeviceSerials |
List: lista numerów seryjnych urządzeń do ustawienia. |