Comando de clúster

public class ClusterCommand
extends Object

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


Una clase que representa una tarea obtenida de TF Cluster.

Resumen

Constructores públicos

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)

Constructor.

Métodos públicos

static ClusterCommand fromJson (JSONObject json)
String getAttemptId ()

Devuelve el ID del intento.

String getCommandId ()

Devuelve el ID del comando.

String getCommandLine ()

Devuelve la cadena de la línea de comando.

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

Devuelve el ID de la solicitud.

ClusterCommand.RequestType getRequestType ()

Devuelve un tipo de solicitud

Integer getShardCount ()

Devuelve un recuento de fragmentos.

Integer getShardIndex ()

Devuelve un índice de fragmento.

getTargetDeviceSerials ()

Devuelve la lista de números de serie de dispositivos de destino en los que este comando intentará ejecutarse.

String getTaskId ()

Devuelve el ID de la tarea.

void setTargetDeviceSerials ( targetDeviceSerials) setTargetDeviceSerials ( targetDeviceSerials)

Establece la lista de números de serie de dispositivos de destino en los que intentará ejecutarse el comando.

Constructores públicos

Comando de clúster

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

Parámetros
commandId String

taskId String

cmdLine String

Comando de clúster

public ClusterCommand (String requestId, 
                String commandId, 
                String taskId, 
                String cmdLine, 
                String attemptId, 
                ClusterCommand.RequestType requestType, 
                Integer shardCount, 
                Integer shardIndex)

Constructor.

Parámetros
requestId String : una identificación de solicitud

commandId String : el ID del comando que emitió esta tarea

taskId String : El ID de esta tarea

cmdLine String : la línea de comando para ejecutar

attemptId String

requestType ClusterCommand.RequestType : un tipo de solicitud

shardCount Integer : un recuento de fragmentos

shardIndex Integer : un índice de fragmento

Métodos públicos

Ubicación:Json

public static ClusterCommand fromJson (JSONObject json)

Parámetros
json JSONObject

Devoluciones
ClusterCommand

Lanza
JSONException

getAttemptId

public String getAttemptId ()

Devuelve el ID del intento. El intento es un GUID generado aleatoriamente que se utiliza para distinguir varias ejecuciones de comandos.

Devoluciones
String la identificación del intento

obtenerIdComando

public String getCommandId ()

Devuelve el ID del comando.

Devoluciones
String el identificador de comando

getCommandLine

public String getCommandLine ()

Devuelve la cadena de la línea de comando.

Devoluciones
String la cadena de línea de comando.

obtenerOpcionesExtra

public UniqueMultiMap<String, String> getExtraOptions ()

Devoluciones
UniqueMultiMap <String, String> multimapa de opciones adicionales para inyectar

getRequestId

public String getRequestId ()

Devuelve el ID de la solicitud.

Devoluciones
String la identificación de la solicitud

getRequestType

public ClusterCommand.RequestType getRequestType ()

Devuelve un tipo de solicitud

Devoluciones
ClusterCommand.RequestType un tipo de solicitud

getShardCount

public Integer getShardCount ()

Devuelve un recuento de fragmentos.

Devoluciones
Integer un recuento de fragmentos.

getShardIndex

public Integer getShardIndex ()

Devuelve un índice de fragmento.

Devoluciones
Integer un índice de fragmento.

getTargetDeviceSerials

public  getTargetDeviceSerials ()

Devuelve la lista de números de serie de dispositivos de destino en los que este comando intentará ejecutarse.

Devoluciones
la lista de seriales de dispositivos de destino

getTaskId

public String getTaskId ()

Devuelve el ID de la tarea.

Devoluciones
String identificador de tarea

setTargetDeviceSerials

public void setTargetDeviceSerials ( targetDeviceSerials)

Establece la lista de números de serie de dispositivos de destino en los que intentará ejecutarse el comando.

Parámetros
targetDeviceSerials : la lista de seriales de dispositivos para configurar