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

Konstanter Wert: "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

Konstanter Wert: "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

Constant Value: "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

Konstanter Wert: "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.

Gibt Folgendes zurück:
ClusterCommandEvent.Builder Ein Builder.

createEventBuilder

public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)

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

Parameter
command ClusterCommand

Gibt Folgendes zurück:
ClusterCommandEvent.Builder Ein Builder.

getAttemptId

public String getAttemptId ()

Gibt Folgendes zurück:
String

getCommandTaskId

public String getCommandTaskId ()

Gibt Folgendes zurück:
String

getData

public Map<String, Object> getData ()

Gibt Folgendes zurück:
Map<String, Object>

getDeviceSerials

public Set<String> getDeviceSerials ()

Gibt Folgendes zurück:
Set<String>

getHostName

public String getHostName ()

Gibt Folgendes zurück:
String

getInvocationStatus

public InvocationStatus getInvocationStatus ()

Gibt Folgendes zurück:
InvocationStatus

getTimestamp

public long getTimestamp ()

Gibt Folgendes zurück:
long

getType

public ClusterCommandEvent.Type getType ()

Gibt Folgendes zurück:
ClusterCommandEvent.Type

toJSON

public JSONObject toJSON ()

Gibt Folgendes zurück:
JSONObject

Löst aus
JSONException

toString

public String toString ()

Gibt Folgendes zurück:
String