ClusterCommandEvent

public class ClusterCommandEvent
extends Object implements IClusterEvent

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


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

摘要

嵌套的类

class ClusterCommandEvent.Builder

 

常量

String DATA_KEY_ERROR

String DATA_KEY_ERROR_ID_CODE

String DATA_KEY_ERROR_ID_NAME

String DATA_KEY_ERROR_STATUS

String DATA_KEY_FAILED_TEST_COUNT

String DATA_KEY_FAILED_TEST_RUN_COUNT

String DATA_KEY_FETCH_BUILD_TIME_MILLIS

String DATA_KEY_LOST_DEVICE_DETECTED

String DATA_KEY_PASSED_TEST_COUNT

String DATA_KEY_SETUP_TIME_MILLIS

String DATA_KEY_SUBPROCESS_COMMAND_ERROR

String DATA_KEY_SUMMARY

String DATA_KEY_TOTAL_TEST_COUNT

int MAX_DATA_STRING_SIZE

公共方法

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()

常量

DATA_KEY_ERROR

public static final String DATA_KEY_ERROR

常量值: "error"

DATA_KEY_ERROR_ID_CODE

public static final String DATA_KEY_ERROR_ID_CODE

常量值: "error_code"

DATA_KEY_ERROR_ID_NAME

public static final String DATA_KEY_ERROR_ID_NAME

常量值: "error_name"

DATA_KEY_ERROR_STATUS

public static final String DATA_KEY_ERROR_STATUS

常量值: "error_status"

DATA_KEY_FAILED_TEST_COUNT

public static final String DATA_KEY_FAILED_TEST_COUNT

常量值: "failed_test_count"

DATA_KEY_FAILED_TEST_RUN_COUNT

public static final String DATA_KEY_FAILED_TEST_RUN_COUNT

常量值: "failed_test_run_count"

DATA_KEY_FETCH_BUILD_TIME_MILLIS

public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS

常量值: “fetch_build_time_millis”

DATA_KEY_LOST_DEVICE_DETECTED

public static final String DATA_KEY_LOST_DEVICE_DETECTED

常量值: "device_lost_detected"

DATA_KEY_PASSED_TEST_COUNT

public static final String DATA_KEY_PASSED_TEST_COUNT

常量值: "passed_test_count"

DATA_KEY_SETUP_TIME_MILLIS

public static final String DATA_KEY_SETUP_TIME_MILLIS

常量值: "setup_time_millis"

DATA_KEY_SUBPROCESS_COMMAND_ERROR

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

常量值: "subprocess_command_error"

DATA_KEY_SUMMARY

public static final String DATA_KEY_SUMMARY

常量值: "summary"

DATA_KEY_TOTAL_TEST_COUNT

public static final String DATA_KEY_TOTAL_TEST_COUNT

常量值: "total_test_count"

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

常量值: 4095 (0x00000fff)

公共方法

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

创建基本 Builder

返回
ClusterCommandEvent.Builder a Builder

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

为给定的 ClusterCommand 创建基本 Builder

参数
command ClusterCommand

返回
ClusterCommandEvent.Builder a 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