Zdarzenie polecenia klastra

public class ClusterCommandEvent
extends Object implements IClusterEvent

java.lang.Object
com.android.tradefed.cluster.EventCommand


Klasa do hermetyzacji zdarzeń polecenia klastra, które mają zostać przesłane.

Podsumowanie

Zagnieżdżone klasy

class ClusterCommandEvent.Builder

 

Stałe

int MAX_DATA_STRING_SIZE

Fieldsem

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

Metody publiczne

static ClusterCommandEvent.Builder createEventBuilder()

Tworzy podstawowy element Builder.

static ClusterCommandEvent.Builder createEventBuilder(ClusterCommand command)

Tworzy podstawową Builder dla podanej wartości ClusterCommand.

String getAttemptId()
String getCommandTaskId()
getData()
getDeviceSerials()
String getHostName()
InvocationStatus getInvocationStatus()
long getTimestamp()
ClusterCommandEvent.Type getType()
JSONObject toJSON()

String toString()

Stałe

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

Wartość stała: 4095 (0x00000fff)

Fieldsem

BŁĄD_KLUCZ_DANYCH

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_CONFIG_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

Metody publiczne

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

Tworzy podstawowy element Builder.

Zwroty
ClusterCommandEvent.Builder Builder.

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

Tworzy podstawową Builder dla podanej wartości ClusterCommand.

Parametry
command ClusterCommand

Zwroty
ClusterCommandEvent.Builder Builder.

identyfikator_próby

public String getAttemptId ()

Zwroty
String

Identyfikator zadania getCommand

public String getCommandTaskId ()

Zwroty
String

getData

public  getData ()

Zwroty

getDeviceSerials

public  getDeviceSerials ()

Zwroty

getHostName

public String getHostName ()

Zwroty
String

getInvocationStatus,

public InvocationStatus getInvocationStatus ()

Zwroty
InvocationStatus

getTimestamp

public long getTimestamp ()

Zwroty
long

getType

public ClusterCommandEvent.Type getType ()

Zwroty
ClusterCommandEvent.Type

JSON

public JSONObject toJSON ()

Zwroty
JSONObject

Rzuty
JSONException

Ciąg

public String toString ()

Zwroty
String