ClusterCommand
public class ClusterCommand
extends Object
java.lang.Oggetto | |
↳ | 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 shard. |
getTargetDeviceSerials () Restituisce l'elenco dei seriali del dispositivo di destinazione su cui tenterà di eseguire questo comando. | |
String | getTaskId () Restituisce l'ID 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 emesso 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 numero di shard |
shardIndex | Integer : un indice shard |
Metodi pubblici
fromJson
public static ClusterCommand fromJson (JSONObject json)
Parametri | |
---|---|
json | JSONObject |
ritorna | |
---|---|
ClusterCommand |
Getta | |
---|---|
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 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. |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
ritorna | |
---|---|
UniqueMultiMap <String, String> | multimap di opzioni aggiuntive da iniettare |
getRequestId
public String getRequestId ()
Restituisce l'ID della richiesta.
ritorna | |
---|---|
String | l'ID della richiesta |
getTipoRichiesta
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 shard.
ritorna | |
---|---|
Integer | un indice di shard. |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
Restituisce l'elenco dei seriali del dispositivo di destinazione su cui tenterà di eseguire questo comando.
ritorna | |
---|---|
l'elenco dei seriali del dispositivo di destinazione |
getTaskId
public String getTaskId ()
Restituisce l'ID attività.
ritorna | |
---|---|
String | ID 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 |