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)

สร้างBuilderฐานสำหรับ ClusterCommand ที่ระบุ

String getAttemptId()
String getCommandTaskId()
Map<String, Object> getData()
Set<String> 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 Builder

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

สร้างBuilderฐานสำหรับ ClusterCommand ที่ระบุ

พารามิเตอร์
command ClusterCommand

การคืนสินค้า
ClusterCommandEvent.Builder Builder

getAttemptId

public String getAttemptId ()

การคืนสินค้า
String

getCommandTaskId

public String getCommandTaskId ()

การคืนสินค้า
String

getData

public Map<String, Object> getData ()

การคืนสินค้า
Map<String, Object>

getDeviceSerials

public Set<String> getDeviceSerials ()

การคืนสินค้า
Set<String>

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