클러스터 명령어 이벤트

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_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)

지정된 ClusterCommand의 기본 Builder를 만듭니다.

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

상수 값: 4,095 (0x00000fff)

필드

데이터_키_오류

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(데이터_키_LOST_기기_감지됨)

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_명령_오류

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

데이터_키_요약

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

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

JSON으로 변환

public JSONObject toJSON ()

반환 값
JSONObject

생성 값
JSONException

toString

public String toString ()

반환 값
String