Polecenie klastra

public class ClusterCommand
extends Object

Obiekt Java.lang.Object
com.android.tradefed.cluster.ClusterCommand


Klasa reprezentująca zadanie pobrane z klastra TF.

Streszczenie

Konstruktorzy publiczni

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.

getTargetDeviceSerials ()

Zwraca listę numerów seryjnych urządzeń docelowych, na których będzie próbowało uruchomić to polecenie.

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 zostać uruchomione.

Konstruktorzy publiczni

Polecenie klastra

public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)

Parametry
commandId String

taskId String

cmdLine String

Polecenie klastra

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 poleceń do uruchomienia

attemptId String

requestType ClusterCommand.RequestType : Typ żądania

shardCount Integer : liczba fragmentów

shardIndex Integer : indeks fragmentu

Metody publiczne

od Jsona

public static ClusterCommand fromJson (JSONObject json)

Parametry
json JSONObject

Zwroty
ClusterCommand

Rzuca
JSONException

getAttemptId

public String getAttemptId ()

Zwraca identyfikator próby. Próbą jest losowo wygenerowany identyfikator GUID używany do rozróżnienia wielu uruchomień poleceń.

Zwroty
String identyfikator próby

pobierzId polecenia

public String getCommandId ()

Zwraca identyfikator polecenia.

Zwroty
String identyfikator polecenia

pobierz linię poleceń

public String getCommandLine ()

Zwraca ciąg wiersza poleceń.

Zwroty
String ciąg wiersza poleceń.

pobierzDodatkoweOpcje

public UniqueMultiMap<String, String> getExtraOptions ()

Zwroty
UniqueMultiMap <String, String> multimap dodatkowych opcji do wstrzyknięcia

pobierzId żądania

public String getRequestId ()

Zwraca identyfikator żądania.

Zwroty
String identyfikator żądania

pobierz typ żądania

public ClusterCommand.RequestType getRequestType ()

Zwraca typ żądania

Zwroty
ClusterCommand.RequestType typ żądania

pobierzShardCount

public Integer getShardCount ()

Zwraca liczbę fragmentów.

Zwroty
Integer twarda liczba.

pobierzShardIndex

public Integer getShardIndex ()

Zwraca indeks fragmentu.

Zwroty
Integer indeks fragmentu.

getTargetDeviceSerials

public  getTargetDeviceSerials ()

Zwraca listę numerów seryjnych urządzeń docelowych, na których będzie próbowało uruchomić to polecenie.

Zwroty
lista numerów seryjnych urządzenia docelowego

pobierzIdZadania

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 polecenie będzie próbowało zostać uruchomione.

Parametry
targetDeviceSerials : lista numerów seryjnych urządzeń do ustawienia

,

Polecenie klastra

public class ClusterCommand
extends Object

Obiekt Java.lang.Object
com.android.tradefed.cluster.ClusterCommand


Klasa reprezentująca zadanie pobrane z klastra TF.

Streszczenie

Konstruktorzy publiczni

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.

getTargetDeviceSerials ()

Zwraca listę numerów seryjnych urządzeń docelowych, na których będzie próbowało uruchomić to polecenie.

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 zostać uruchomione.

Konstruktorzy publiczni

Polecenie klastra

public ClusterCommand (String commandId, 
                String taskId, 
                String cmdLine)

Parametry
commandId String

taskId String

cmdLine String

Polecenie klastra

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 poleceń do uruchomienia

attemptId String

requestType ClusterCommand.RequestType : Typ żądania

shardCount Integer : liczba fragmentów

shardIndex Integer : indeks fragmentu

Metody publiczne

od Jsona

public static ClusterCommand fromJson (JSONObject json)

Parametry
json JSONObject

Zwroty
ClusterCommand

Rzuca
JSONException

getAttemptId

public String getAttemptId ()

Zwraca identyfikator próby. Próbą jest losowo wygenerowany identyfikator GUID używany do rozróżnienia wielu uruchomień poleceń.

Zwroty
String identyfikator próby

pobierzId polecenia

public String getCommandId ()

Zwraca identyfikator polecenia.

Zwroty
String identyfikator polecenia

pobierz linię poleceń

public String getCommandLine ()

Zwraca ciąg wiersza poleceń.

Zwroty
String ciąg wiersza poleceń.

pobierzDodatkoweOpcje

public UniqueMultiMap<String, String> getExtraOptions ()

Zwroty
UniqueMultiMap <String, String> multimap dodatkowych opcji do wstrzyknięcia

pobierzId żądania

public String getRequestId ()

Zwraca identyfikator żądania.

Zwroty
String identyfikator żądania

pobierz typ żądania

public ClusterCommand.RequestType getRequestType ()

Zwraca typ żądania

Zwroty
ClusterCommand.RequestType typ żądania

pobierzShardCount

public Integer getShardCount ()

Zwraca liczbę fragmentów.

Zwroty
Integer twarda liczba.

pobierzShardIndex

public Integer getShardIndex ()

Zwraca indeks fragmentu.

Zwroty
Integer indeks fragmentu.

getTargetDeviceSerials

public  getTargetDeviceSerials ()

Zwraca listę numerów seryjnych urządzeń docelowych, na których będzie próbowało uruchomić to polecenie.

Zwroty
lista numerów seryjnych urządzenia docelowego

pobierzIdZadania

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 polecenie będzie próbowało zostać uruchomione.

Parametry
targetDeviceSerials : lista numerów seryjnych urządzeń do ustawienia