ClusterCommand
public
class
ClusterCommand
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.ClusterCommand |
Una classe che rappresenta un'attività recuperata dal cluster TF.
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 di shard. |
Integer
|
getShardIndex()
Restituisce un indice di shard. |
List<String>
|
getTargetDeviceSerials()
Restituisce l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà tentato di eseguire questo comando. |
String
|
getTaskId()
Restituisce l'ID attività. |
void
|
setTargetDeviceSerials(List<String> targetDeviceSerials)
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 questo task |
taskId |
String: l'ID di questo task |
cmdLine |
String: la riga di comando da eseguire |
attemptId |
String |
requestType |
ClusterCommand.RequestType: Un tipo di richiesta |
shardCount |
Integer: Un conteggio shard |
shardIndex |
Integer: un indice di shard |
Metodi pubblici
fromJson
public static ClusterCommand fromJson (JSONObject json)
| Parametri | |
|---|---|
json |
JSONObject |
| Resi | |
|---|---|
ClusterCommand |
|
| Genera | |
|---|---|
JSONException |
|
getAttemptId
public String getAttemptId ()
Restituisce l'ID tentativo. Il tentativo è un GUID generato in modo casuale utilizzato per distinguere più esecuzioni di comandi.
| Resi | |
|---|---|
String |
l'ID tentativo |
getCommandId
public String getCommandId ()
Restituisce l'ID comando.
| Resi | |
|---|---|
String |
l'ID comando |
getCommandLine
public String getCommandLine ()
Restituisce la stringa della riga di comando.
| Resi | |
|---|---|
String |
la stringa della riga di comando. |
getExtraOptions
public UniqueMultiMap<String, String> getExtraOptions ()
| Resi | |
|---|---|
UniqueMultiMap<String, String> |
multimap di opzioni aggiuntive da inserire |
getRequestId
public String getRequestId ()
Restituisce l'ID richiesta.
| Resi | |
|---|---|
String |
l'ID richiesta |
getRequestType
public ClusterCommand.RequestType getRequestType ()
Restituisce un tipo di richiesta
| Resi | |
|---|---|
ClusterCommand.RequestType |
un tipo di richiesta |
getShardCount
public Integer getShardCount ()
Restituisce un conteggio di shard.
| Resi | |
|---|---|
Integer |
un conteggio shard. |
getShardIndex
public Integer getShardIndex ()
Restituisce un indice di shard.
| Resi | |
|---|---|
Integer |
un indice di shard. |
getTargetDeviceSerials
public List<String> getTargetDeviceSerials ()
Restituisce l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà tentato di eseguire questo comando.
| Resi | |
|---|---|
List<String> |
l'elenco dei numeri di serie dei dispositivi di destinazione |
getTaskId
public String getTaskId ()
Restituisce l'ID attività.
| Resi | |
|---|---|
String |
ID attività. |
setTargetDeviceSerials
public void setTargetDeviceSerials (List<String> targetDeviceSerials)
Imposta l'elenco dei numeri di serie dei dispositivi di destinazione su cui verrà eseguito il comando.
| Parametri | |
|---|---|
targetDeviceSerials |
List: l'elenco dei numeri di serie dei dispositivi da impostare |