ClusterCommandEvent
public class ClusterCommandEvent
extends Object
implements IClusterEvent
java.lang.Object | |
↳ | 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_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_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_ERROR
public static final String DATA_KEY_ERROR
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_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 。 |
getAttemptId
public String getAttemptId ()
退貨 | |
---|---|
String |
getCommandTaskId
public String getCommandTaskId ()
退貨 | |
---|---|
String |
getData
publicgetData ()
退貨 | |
---|---|
getDeviceSerials
publicgetDeviceSerials ()
退貨 | |
---|---|
getHostName
public String getHostName ()
退貨 | |
---|---|
String |
getTimestamp
public long getTimestamp ()
退貨 | |
---|---|
long |
toJSON
public JSONObject toJSON ()
退貨 | |
---|---|
JSONObject |
投擲 | |
---|---|
JSONException |
toString
public String toString ()
退貨 | |
---|---|
String |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.