Google 致力于为黑人社区推动种族平等。查看具体举措

集群命令事件

public class ClusterCommandEvent
extends Object implements IClusterEvent

对象
com.android.tradefed.cluster.ClusterCommandEvent


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

概括

嵌套类

class ClusterCommandEvent.Builder

enum ClusterCommandEvent.Type

常数

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)

创建一个基础Builder对于给定的ClusterCommand

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)

字段

DATA_KEY_ERROR

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

DATA_KEY_SUMMARY

public static final String DATA_KEY_SUMMARY

DATA_KEY_TOTAL_TEST_COUNT 个

public static final String DATA_KEY_TOTAL_TEST_COUNT

公共方法

创建事件构建器

public static ClusterCommandEvent.Builder createEventBuilder ()

创建一个基础Builder

退货
ClusterCommandEvent.Builder一个Builder

创建事件构建器

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

创建一个基础Builder对于给定的ClusterCommand

参数
command ClusterCommand

退货
ClusterCommandEvent.Builder一个Builder

获取尝试 ID

public String getAttemptId ()

退货
String

获取命令任务 ID

public String getCommandTaskId ()

退货
String

获取数据

public  getData ()

退货

获取设备序列号

public  getDeviceSerials ()

退货

获取主机名

public String getHostName ()

退货
String

获取调用状态

public InvocationStatus getInvocationStatus ()

退货
InvocationStatus

获取时间戳

public long getTimestamp ()

退货
long

获取类型

public ClusterCommandEvent.Type getType ()

退货
ClusterCommandEvent.Type

到JSON

public JSONObject toJSON ()

退货
JSONObject

投掷
JSONException

字符串

public String toString ()

退货
String