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 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 dei frammenti. |
Integer
|
getShardIndex()
Restituisce un indice del frammento. |
|
getTargetDeviceSerials()
Restituisce l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà eseguito il comando. |
String
|
getTaskId()
Restituisce l'ID dell'attività. |
void
|
setTargetDeviceSerials(
Imposta l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà eseguito 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 shard |
shardIndex |
Integer: un indice dello shard |
Metodi pubblici
fromJson
public static ClusterCommand fromJson (JSONObject json)
| Parametri | |
|---|---|
json |
JSONObject |
| Ritorni | |
|---|---|
ClusterCommand |
|
| Lanci | |
|---|---|
JSONException |
|
getAttemptId
public String getAttemptId ()
Restituisce l'ID tentativo. Il tentativo è un GUID generato in modo casuale utilizzato per distinguere più esecuzioni di comandi.
| Ritorni | |
|---|---|
String |
l'ID tentativo |
getCommandId
public String getCommandId ()
Restituisce l'ID comando.
| Ritorni | |
|---|---|
String |
l'ID comando |
getCommandLine
public String getCommandLine ()
Restituisce la stringa della riga di comando.
| Ritorni | |
|---|---|
String |
la stringa della riga di comando. |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
| Ritorni | |
|---|---|
UniqueMultiMap<String, String> |
mappa multipla di opzioni aggiuntive da iniettare |
getRequestId
public String getRequestId ()
Restituisce l'ID richiesta.
| Ritorni | |
|---|---|
String |
l'ID richiesta |
getRequestType
public ClusterCommand.RequestType getRequestType ()
Restituisce un tipo di richiesta
| Ritorni | |
|---|---|
ClusterCommand.RequestType |
un tipo di richiesta |
getShardCount
public Integer getShardCount ()
Restituisce un conteggio dei frammenti.
| Ritorni | |
|---|---|
Integer |
un conteggio dei frammenti. |
getShardIndex
public Integer getShardIndex ()
Restituisce un indice del frammento.
| Ritorni | |
|---|---|
Integer |
un indice del frammento. |
getTargetDeviceSerials
publicgetTargetDeviceSerials ()
Restituisce l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà eseguito il comando.
| Ritorni | |
|---|---|
|
l'elenco dei numeri di serie dei dispositivi di destinazione |
getTaskId
public String getTaskId ()
Restituisce l'ID dell'attività.
| Ritorni | |
|---|---|
String |
ID attività. |
setTargetDeviceSerials
public void setTargetDeviceSerials (targetDeviceSerials)
Imposta l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà eseguito il comando.
| Parametri | |
|---|---|
targetDeviceSerials |
: l'elenco dei numeri di serie dei dispositivi da impostare |