ClusterCommandEvent

public class ClusterCommandEvent
extends Object implements IClusterEvent

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommandEvent


Uma classe para encapsular eventos de comando do cluster a serem enviados.

Resumo

Classes aninhadas

class ClusterCommandEvent.Builder

 

Constantes

int MAX_DATA_STRING_SIZE

Campos

public static final String DATA_KEY_ERROR

public static final String DATA_KEY_ERROR_ID_CODE

public static final String DATA_KEY_ERROR_ID_NAME

public static final String DATA_KEY_ERROR_STATUS

public static final String DATA_KEY_FAILED_TEST_COUNT

public static final String DATA_KEY_FAILED_TEST_RUN_COUNT

public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS

public static final String DATA_KEY_LOST_DEVICE_DETECTED

public static final String DATA_KEY_PASSED_TEST_COUNT

public static final String DATA_KEY_SETUP_TIME_MILLIS

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

public static final String DATA_KEY_SUMMARY

public static final String DATA_KEY_TOTAL_TEST_COUNT

Métodos públicos

static ClusterCommandEvent.Builder createEventBuilder()

Cria um Builder de base.

static ClusterCommandEvent.Builder createEventBuilder(ClusterCommand command)

Cria uma base Builder para o ClusterCommand especificado.

String getAttemptId()
String getCommandTaskId()
getData()
getDeviceSerials()
String getHostName()
InvocationStatus getInvocationStatus()
long getTimestamp()
ClusterCommandEvent.Type getType()
JSONObject toJSON()

String toString()

Constantes

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

Valor constante: 4.095 (0x00000fff)

Campos

ERRO_CHAVE_DE_DADOS

public static final String DATA_KEY_ERROR

CÓDIGO_DE_CHAVE_DE_DADOS

public static final String DATA_KEY_ERROR_ID_CODE

DATA_KEY_ERROR_ID_NAME

public static final String DATA_KEY_ERROR_ID_NAME

DATA_KEY_ERROR_STATUS

public static final String DATA_KEY_ERROR_STATUS

DATA_KEY_FAILED_TEST_COUNT

public static final String DATA_KEY_FAILED_TEST_COUNT

DATA_KEY_FAILED_TEST_RUN_COUNT

public static final String DATA_KEY_FAILED_TEST_RUN_COUNT

CHAVE_DE_DADOS

public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS

DATA_KEY_LOST_DEVICE_DETECTED

public static final String DATA_KEY_LOST_DEVICE_DETECTED

DATA_KEY_PASSED_TEST_COUNT

public static final String DATA_KEY_PASSED_TEST_COUNT

CONFIGURAÇÃO_DA_CHAVE_DE_DADOS_EM_MILLIS

public static final String DATA_KEY_SETUP_TIME_MILLIS

DATA_KEY_SUBPROCESS_COMMAND_ERROR

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

RESUMO_CHAVE_DE_DADOS

public static final String DATA_KEY_SUMMARY

DATA_KEY_TOTAL_TEST_COUNT

public static final String DATA_KEY_TOTAL_TEST_COUNT

Métodos públicos

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

Cria um Builder de base.

Retorna
ClusterCommandEvent.Builder um Builder.

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

Cria uma base Builder para o ClusterCommand especificado.

Parâmetros
command ClusterCommand

Retorna
ClusterCommandEvent.Builder um Builder.

getAttemptId

public String getAttemptId ()

Retorna
String

getCommandTaskId

public String getCommandTaskId ()

Retorna
String

getData

public  getData ()

Retorna

getDeviceSerials

public  getDeviceSerials ()

Retorna

getHostName

public String getHostName ()

Retorna
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

Retorna
InvocationStatus

getTimestamp

public long getTimestamp ()

Retorna
long

getType

public ClusterCommandEvent.Type getType ()

Retorna
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

Retorna
JSONObject

Gera
JSONException

toString

public String toString ()

Retorna
String