ClusterCommand
public
class
ClusterCommand
extends Object
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommand |
Klasa reprezentująca zadanie pobrane z TF Cluster.
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 tekstowy 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. |
|
getTargetDeviceSerials()
Zwraca listę numerów seryjnych urządzeń docelowych, na których zostanie uruchomione to polecenie. |
String
|
getTaskId()
Zwraca identyfikator zadania. |
void
|
setTargetDeviceSerials(
Ustawia listę numerów seryjnych urządzeń docelowych, na których zostanie uruchomione polecenie. |
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 |
Zwroty | |
---|---|
ClusterCommand |
Rzuty | |
---|---|
JSONException |
getAttemptId
public String getAttemptId ()
Zwraca identyfikator próby. Próba to wygenerowany losowo identyfikator GUID, który służy do rozróżniania różnych poleceń.
Zwroty | |
---|---|
String |
identyfikator próby, |
getCommandId
public String getCommandId ()
Zwraca identyfikator polecenia.
Zwroty | |
---|---|
String |
identyfikator polecenia. |
getCommandLine
public String getCommandLine ()
Zwraca ciąg tekstowy wiersza poleceń.
Zwroty | |
---|---|
String |
ciągu znaków wiersza poleceń. |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
Zwroty | |
---|---|
UniqueMultiMap<String, String> |
multimap z dodatkowymi opcjami 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 prośby, |
getShardCount
public Integer getShardCount ()
Zwraca liczbę fragmentów.
Zwroty | |
---|---|
Integer |
liczba fragmentów. |
getShardIndex
public Integer getShardIndex ()
Zwraca indeks fragmentu.
Zwroty | |
---|---|
Integer |
indeksu fragmentu. |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
Zwraca listę numerów seryjnych urządzeń docelowych, na których zostanie uruchomione to polecenie.
Zwroty | |
---|---|
|
lista numerów seryjnych urządzeń docelowych; |
getTaskId
public String getTaskId ()
Zwraca identyfikator zadania.
Zwroty | |
---|---|
String |
identyfikator zadania. |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
Ustawia listę numerów seryjnych urządzeń docelowych, na których zostanie uruchomione polecenie.
Parametry | |
---|---|
targetDeviceSerials |
: lista numerów seryjnych urządzeń do ustawienia |