Polecenie klastra

public class ClusterCommand
extends Object

java.lang.Object
com.android.tradefed.cluster.CommandCommand


Klasa, która reprezentuje zadanie pobrane z klastra TF.

Podsumowanie

Zagnieżdżone klasy

enum ClusterCommand.RequestType

 

enum ClusterCommand.State

Stan polecenia w klastrze TF. 

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.

getTargetDeviceSerials()

Zwraca listę numerów seryjnych urządzenia docelowego, na których zostanie podjęta próba uruchomienia tego polecenia.

String getTaskId()

Zwraca identyfikator zadania.

void setTargetDeviceSerials( targetDeviceSerials)

Ustawia listę numerów seryjnych urządzeń docelowych, na których zostanie uruchomione polecenie.

Konstruktory publiczne

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 fragmentów

Metody publiczne

Od JSON

public static ClusterCommand fromJson (JSONObject json)

Parametry
json JSONObject

Zwroty
ClusterCommand

Rzuty
JSONException

identyfikator_próby

public String getAttemptId ()

Zwraca identyfikator próby. Próba jest losowo generowanym identyfikatorem GUID służącym do rozróżnienia i uruchamiania 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 w ciągu wiersza poleceń.

getExtraOptions

public UniqueMultiMap<String, String> getExtraOptions ()

Zwroty
UniqueMultiMap<String, String> multimapa dodatkowych opcji do wstrzykiwania

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ę fragmentów.

Zwroty
Integer liczbę fragmentów.

getShardIndex

public Integer getShardIndex ()

Zwraca indeks fragmentu.

Zwroty
Integer indeks fragmentów.

getTargetDeviceSerials

public  getTargetDeviceSerials ()

Zwraca listę numerów seryjnych urządzenia docelowego, na których zostanie podjęta próba uruchomienia tego polecenia.

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