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