集群命令事件

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