ClusterCommandEvent

public class ClusterCommandEvent
extends Object implements IClusterEvent

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommandEvent


Eine Klasse zum Kapseln von Clusterbefehlsereignissen, die hochgeladen werden sollen.

Zusammenfassung

Verschachtelte Klassen

class ClusterCommandEvent.Builder

 

Konstanten

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

Öffentliche Methoden

static ClusterCommandEvent.Builder createEventBuilder()

Erstellt eine Basis-Builder.

static ClusterCommandEvent.Builder createEventBuilder(ClusterCommand command)

Erstellt eine Basis-Builder für die angegebene ClusterCommand.

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

String toString()

Konstanten

DATA_KEY_ERROR

public static final String DATA_KEY_ERROR

Konstanter Wert: "error"

DATA_KEY_ERROR_ID_CODE

public static final String DATA_KEY_ERROR_ID_CODE

Constant Value: "error_code"

DATA_KEY_ERROR_ID_NAME

public static final String DATA_KEY_ERROR_ID_NAME

Constant Value: "error_name"

DATA_KEY_ERROR_STATUS

public static final String DATA_KEY_ERROR_STATUS

Konstanter Wert: "error_status"

DATA_KEY_FAILED_TEST_COUNT

public static final String DATA_KEY_FAILED_TEST_COUNT

Constant Value: "failed_test_count"

DATA_KEY_FAILED_TEST_RUN_COUNT

public static final String DATA_KEY_FAILED_TEST_RUN_COUNT

Konstanter Wert: "failed_test_run_count"

DATA_KEY_FETCH_BUILD_TIME_MILLIS

public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS

Konstanter Wert: "fetch_build_time_millis"

DATA_KEY_LOST_DEVICE_DETECTED

public static final String DATA_KEY_LOST_DEVICE_DETECTED

Konstanter Wert: "device_lost_detected"

DATA_KEY_PASSED_TEST_COUNT

public static final String DATA_KEY_PASSED_TEST_COUNT

Konstanter Wert: "passed_test_count"

DATA_KEY_SETUP_TIME_MILLIS

public static final String DATA_KEY_SETUP_TIME_MILLIS

Konstanter Wert: "setup_time_millis"

DATA_KEY_SUBPROCESS_COMMAND_ERROR

public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR

Konstanter Wert: "subprocess_command_error"

DATA_KEY_SUMMARY

public static final String DATA_KEY_SUMMARY

Konstanter Wert: "summary"

DATA_KEY_TOTAL_TEST_COUNT

public static final String DATA_KEY_TOTAL_TEST_COUNT

Constant Value: "total_test_count"

MAX_DATA_STRING_SIZE

public static final int MAX_DATA_STRING_SIZE

Konstanter Wert: 4095 (0x00000fff)

Öffentliche Methoden

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder ()

Erstellt eine Basis-Builder.

Returns
ClusterCommandEvent.Builder Builder

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

Erstellt eine Basis-Builder für die angegebene ClusterCommand.

Parameter
command ClusterCommand

Returns
ClusterCommandEvent.Builder Builder

getAttemptId

public String getAttemptId ()

Returns
String

getCommandTaskId

public String getCommandTaskId ()

Returns
String

getData

public  getData ()

Returns

getDeviceSerials

public  getDeviceSerials ()

Returns

getHostName

public String getHostName ()

Returns
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

Returns
InvocationStatus

getTimestamp

public long getTimestamp ()

Returns
long

getType

public ClusterCommandEvent.Type getType ()

Returns
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

Returns
JSONObject

Ausgabe
JSONException

toString

public String toString ()

Returns
String