클러스터 명령 이벤트

public class ClusterCommandEvent
extends Object implements IClusterEvent

java.lang.객체
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 .

getAttemptId

public String getAttemptId ()

보고
String

getCommandTaskId

public String getCommandTaskId ()

보고
String

데이터 가져오기

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