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
Classi nidificate | |
---|---|
enum | ClusterCommand.RequestType |
enum | ClusterCommand.State Lo stato del comando nel cluster TF. |
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 comando. |
String | getCommandLine () Restituisce la stringa della riga di comando. |
UniqueMultiMap <String, String> | getExtraOptions () |
String | getRequestId () Restituisce l'ID richiesta. |
ClusterCommand.RequestType | getRequestType () Restituisce un tipo di richiesta |
Integer | getShardCount () Restituisce un conteggio di frammenti. |
Integer | getShardIndex () Restituisce un indice di shard. |
getTargetDeviceSerials () Restituisce l'elenco dei numeri seriali del dispositivo di destinazione su cui questo comando tenterà di essere eseguito. | |
String | getTaskId () Restituisce l'ID attività. |
void | setTargetDeviceSerials ( targetDeviceSerials) setTargetDeviceSerials ( targetDeviceSerials) Imposta l'elenco dei numeri seriali del dispositivo di destinazione su cui tenterà di eseguire il comando. |
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 conteggio di frammenti |
shardIndex | Integer : un indice di shard |
Metodi pubblici
da Json
public static ClusterCommand fromJson (JSONObject json)
Parametri | |
---|---|
json | JSONObject |
ritorna | |
---|---|
ClusterCommand |
Tiri | |
---|---|
JSONException |
getAttemptId
public String getAttemptId ()
Restituisce l'ID del tentativo. Il tentativo viene generato in modo casuale GUID utilizzato per distinguere più esecuzioni di comandi.
ritorna | |
---|---|
String | l'ID del tentativo |
getCommandId
public String getCommandId ()
Restituisce l'ID 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> | multimappa di opzioni aggiuntive da iniettare |
getRequestId
public String getRequestId ()
Restituisce l'ID 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 di frammenti.
ritorna | |
---|---|
Integer | un conteggio di frammenti. |
getShardIndex
public Integer getShardIndex ()
Restituisce un indice di shard.
ritorna | |
---|---|
Integer | un indice di shard. |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
Restituisce l'elenco dei numeri seriali del dispositivo di destinazione su cui questo comando tenterà di essere eseguito.
ritorna | |
---|---|
l'elenco dei numeri di serie 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 numeri seriali del dispositivo di destinazione su cui tenterà di eseguire il comando.
Parametri | |
---|---|
targetDeviceSerials |
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2022-08-15 UTC.