ClusterCommandEvent
public class ClusterCommandEvent
extends Object
implements IClusterEvent
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Eine Klasse zum Kapseln von Cluster-Befehlsereignissen, die hochgeladen werden sollen.
Zusammenfassung
Verschachtelte Klassen | |
---|---|
class | ClusterCommandEvent.Builder
|
Konstanten | |
---|---|
int | MAX_DATA_STRING_SIZE
|
Felder | |
---|---|
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
|
Öffentliche Methoden | |
---|---|
static ClusterCommandEvent.Builder | createEventBuilder () Erstellt einen Basis |
static ClusterCommandEvent.Builder | createEventBuilder ( ClusterCommand command) Erstellt einen Basis- |
String | getAttemptId () |
String | getCommandTaskId () |
getData () | |
getDeviceSerials () | |
String | getHostName () |
InvocationStatus | getInvocationStatus () |
long | getTimestamp () |
ClusterCommandEvent.Type | getType () |
JSONObject | toJSON () |
String | toString () |
Konstanten
MAX_DATA_STRING_SIZE
public static final int MAX_DATA_STRING_SIZE
Konstanter Wert: 4095 (0x00000fff)
Felder
DATA_KEY_ERROR
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_SETUP_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
Öffentliche Methoden
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Erstellt einen Basis Builder
.
Kehrt zurück | |
---|---|
ClusterCommandEvent.Builder | ein Builder . |
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Erstellt einen Basis- Builder
für den angegebenen ClusterCommand
.
Parameter | |
---|---|
command | ClusterCommand |
Kehrt zurück | |
---|---|
ClusterCommandEvent.Builder | ein Builder . |
getAttemptId
public String getAttemptId ()
Kehrt zurück | |
---|---|
String |
getCommandTaskId
public String getCommandTaskId ()
Kehrt zurück | |
---|---|
String |
Daten bekommen
publicgetData ()
Kehrt zurück | |
---|---|
getDeviceSerials
publicgetDeviceSerials ()
Kehrt zurück | |
---|---|
getHostName
public String getHostName ()
Kehrt zurück | |
---|---|
String |
getTimestamp
public long getTimestamp ()
Kehrt zurück | |
---|---|
long |
zu JSON
public JSONObject toJSON ()
Kehrt zurück | |
---|---|
JSONObject |
Wirft | |
---|---|
JSONException |
toString
public String toString ()
Kehrt zurück | |
---|---|
String |
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2023-03-30 (UTC).
[]
[]