ClusterCommand

public class ClusterCommand
extends Object

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


Una classe che rappresenta un'attività recuperata da TF Cluster.

Riepilogo

Costruttori pubblici

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)

Costruttore.

Metodi pubblici

static ClusterCommand fromJson (JSONObject json)
String getAttemptId ()

Restituisce l'ID del tentativo.

String getCommandId ()

Restituisce l'ID del comando.

String getCommandLine ()

Restituisce la stringa della riga di comando.

UniqueMultiMap <String, String> getExtraOptions ()
String getRequestId ()

Restituisce l'ID della richiesta.

ClusterCommand.RequestType getRequestType ()

Restituisce un tipo di richiesta

Integer getShardCount ()

Restituisce un conteggio dei frammenti.

Integer getShardIndex ()

Restituisce un indice di partizioni.

getTargetDeviceSerials ()

Restituisce l'elenco dei seriali del dispositivo di destinazione su cui questo comando tenterà di essere eseguito.

String getTaskId ()

Restituisce l'ID dell'attività.

void setTargetDeviceSerials ( targetDeviceSerials) setTargetDeviceSerials ( targetDeviceSerials)

Imposta l'elenco dei seriali del dispositivo di destinazione su cui il comando tenterà di essere eseguito.

Costruttori pubblici

ClusterCommand

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

Parametri
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)

Costruttore.

Parametri
requestId String : un ID richiesta

commandId String : l'ID del comando che ha eseguito questa attività

taskId String : l'ID di questa attività

cmdLine String : la riga di comando da eseguire

attemptId String

requestType ClusterCommand.RequestType : un tipo di richiesta

shardCount Integer : un conteggio di frammenti

shardIndex Integer : un indice di shard

Metodi pubblici

daJson

public static ClusterCommand fromJson (JSONObject json)

Parametri
json JSONObject

ritorna
ClusterCommand

Lancia
JSONException

getAttemptId

public String getAttemptId ()

Restituisce l'ID del tentativo. Il tentativo è un GUID generato in modo casuale utilizzato per distinguere più esecuzioni di comandi.

ritorna
String l'ID del tentativo

getCommandId

public String getCommandId ()

Restituisce l'ID del comando.

ritorna
String l'ID del comando

getCommandLine

public String getCommandLine ()

Restituisce la stringa della riga di comando.

ritorna
String la stringa della riga di comando.

ottieniOpzioniExtra

public UniqueMultiMap<String, String> getExtraOptions ()

ritorna
UniqueMultiMap <String, String> multimappa di opzioni aggiuntive da iniettare

getRequestId

public String getRequestId ()

Restituisce l'ID della richiesta.

ritorna
String l'ID della richiesta

getRequestType

public ClusterCommand.RequestType getRequestType ()

Restituisce un tipo di richiesta

ritorna
ClusterCommand.RequestType un tipo di richiesta

getShardCount

public Integer getShardCount ()

Restituisce un conteggio dei frammenti.

ritorna
Integer un conteggio dei frammenti.

getShardIndex

public Integer getShardIndex ()

Restituisce un indice di partizioni.

ritorna
Integer un indice di frammenti.

getTargetDeviceSerials

public  getTargetDeviceSerials ()

Restituisce l'elenco dei seriali del dispositivo di destinazione su cui questo comando tenterà di essere eseguito.

ritorna
l'elenco dei seriali del dispositivo di destinazione

getTaskId

public String getTaskId ()

Restituisce l'ID dell'attività.

ritorna
String ID dell'attività.

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

Imposta l'elenco dei seriali del dispositivo di destinazione su cui il comando tenterà di essere eseguito.

Parametri
targetDeviceSerials : l'elenco dei seriali del dispositivo da impostare