ClusterCommandEvent

public class ClusterCommandEvent
extends Object implements IClusterEvent

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


用于封装要上传的集群命令事件的类。

摘要

嵌套的类

class ClusterCommandEvent.Builder

 

常量

int MAX_DATA_STRING_SIZE

字段

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

公共方法

static ClusterCommandEvent.Builder createEventBuilder()

创建基本 Builder

static ClusterCommandEvent.Builder createEventBuilder(ClusterCommand command)

为指定的 ClusterCommand 创建基本 Builder

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

String toString()

常量

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

常量值: 4095 (0x00000fff)

字段

数据键错误

public static final String DATA_KEY_ERROR

DATA_KEY_ERROR_ID_CODE

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

DATA_KEY_FETCH_BUILD_TIME_MILLIS

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

DATA_KEY_SETUP_TIME_MILLIS

public static final String DATA_KEY_SETUP_TIME_MILLIS

DATA_KEY_SUBPROCESS_command_ERROR

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

数据键摘要

public static final String DATA_KEY_SUMMARY

DATA_KEY_TOTAL_TEST_COUNT 项

public static final String DATA_KEY_TOTAL_TEST_COUNT

公共方法

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

创建基本 Builder

返回
ClusterCommandEvent.Builder 一个 Builder

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

为指定的 ClusterCommand 创建基本 Builder

参数
command ClusterCommand

返回
ClusterCommandEvent.Builder 一个 Builder

getAttemptId

public String getAttemptId ()

返回
String

getCommandTaskId

public String getCommandTaskId ()

返回
String

getData

public  getData ()

返回

getDeviceSerials

public  getDeviceSerials ()

返回

getHostName

public String getHostName ()

返回
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

返回
InvocationStatus

getTimestamp

public long getTimestamp ()

返回
long

getType

public ClusterCommandEvent.Type getType ()

返回
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

返回
JSONObject

抛出
JSONException

toString

public String toString ()

返回
String