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()
建立基本 |
static
ClusterCommandEvent.Builder
|
createEventBuilder(ClusterCommand command)
為指定的 |
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_錯誤
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
公用方法
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 。 |
get tryId
public String getAttemptId ()
傳回 | |
---|---|
String |
getCommandTaskId
public String getCommandTaskId ()
傳回 | |
---|---|
String |
getData
publicgetData ()
傳回 | |
---|---|
|
getDeviceSerials
publicgetDeviceSerials ()
傳回 | |
---|---|
|
getHostName
public String getHostName ()
傳回 | |
---|---|
String |
getTimestamp
public long getTimestamp ()
傳回 | |
---|---|
long |
JSON
public JSONObject toJSON ()
傳回 | |
---|---|
JSONObject |
擲回 | |
---|---|
JSONException |
toString
public String toString ()
傳回 | |
---|---|
String |