ClusterCommandEvent
public
class
ClusterCommandEvent
extends Object
implements
IClusterEvent
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Klasa do hermetyzacji zdarzeń poleceń klastra, które mają zostać przesłane.
Podsumowanie
Zagnieżdżone klasy | |
|---|---|
class |
ClusterCommandEvent.Builder
|
Stałe | |
|---|---|
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
|
Metody publiczne | |
|---|---|
static
ClusterCommandEvent.Builder
|
createEventBuilder()
Tworzy bazę |
static
ClusterCommandEvent.Builder
|
createEventBuilder(ClusterCommand command)
Tworzy podstawowy element |
String
|
getAttemptId()
|
String
|
getCommandTaskId()
|
|
getData()
|
|
getDeviceSerials()
|
String
|
getHostName()
|
InvocationStatus
|
getInvocationStatus()
|
long
|
getTimestamp()
|
ClusterCommandEvent.Type
|
getType()
|
JSONObject
|
toJSON()
|
String
|
toString()
|
Stałe
DATA_KEY_ERROR
public static final String DATA_KEY_ERROR
Wartość stała: „error”
DATA_KEY_ERROR_ID_CODE
public static final String DATA_KEY_ERROR_ID_CODE
Wartość stała: „error_code”
DATA_KEY_ERROR_ID_NAME
public static final String DATA_KEY_ERROR_ID_NAME
Wartość stała: "error_name"
DATA_KEY_ERROR_STATUS
public static final String DATA_KEY_ERROR_STATUS
Wartość stała: "error_status"
DATA_KEY_FAILED_TEST_COUNT
public static final String DATA_KEY_FAILED_TEST_COUNT
Stała wartość: "failed_test_count"
DATA_KEY_FAILED_TEST_RUN_COUNT
public static final String DATA_KEY_FAILED_TEST_RUN_COUNT
Wartość stała: "failed_test_run_count"
DATA_KEY_FETCH_BUILD_TIME_MILLIS
public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS
Stała wartość: "fetch_build_time_millis"
DATA_KEY_LOST_DEVICE_DETECTED
public static final String DATA_KEY_LOST_DEVICE_DETECTED
Stała wartość: "device_lost_detected"
DATA_KEY_PASSED_TEST_COUNT
public static final String DATA_KEY_PASSED_TEST_COUNT
Stała wartość: "passed_test_count"
DATA_KEY_SETUP_TIME_MILLIS
public static final String DATA_KEY_SETUP_TIME_MILLIS
Wartość stała: "setup_time_millis"
DATA_KEY_SUBPROCESS_COMMAND_ERROR
public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR
Stała wartość: "subprocess_command_error"
DATA_KEY_SUMMARY
public static final String DATA_KEY_SUMMARY
Wartość stała: „summary”
DATA_KEY_TOTAL_TEST_COUNT
public static final String DATA_KEY_TOTAL_TEST_COUNT
Stała wartość: "total_test_count"
MAX_DATA_STRING_SIZE
public static final int MAX_DATA_STRING_SIZE
Wartość stała: 4095 (0x00000fff)
Metody publiczne
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Tworzy bazę Builder.
| Zwroty | |
|---|---|
ClusterCommandEvent.Builder |
Builder |
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Tworzy podstawowy element Builder dla podanego elementu ClusterCommand.
| Parametry | |
|---|---|
command |
ClusterCommand |
| Zwroty | |
|---|---|
ClusterCommandEvent.Builder |
Builder |
getAttemptId
public String getAttemptId ()
| Zwroty | |
|---|---|
String |
|
getCommandTaskId
public String getCommandTaskId ()
| Zwroty | |
|---|---|
String |
|
getData
publicgetData ()
| Zwroty | |
|---|---|
|
|
getDeviceSerials
publicgetDeviceSerials ()
| Zwroty | |
|---|---|
|
|
getHostName
public String getHostName ()
| Zwroty | |
|---|---|
String |
|
getTimestamp
public long getTimestamp ()
| Zwroty | |
|---|---|
long |
|
toJSON
public JSONObject toJSON ()
| Zwroty | |
|---|---|
JSONObject |
|
| Zgłasza | |
|---|---|
JSONException |
|
toString
public String toString ()
| Zwroty | |
|---|---|
String |
|