ClusterCommandEvent
public
class
ClusterCommandEvent
extends Object
implements
IClusterEvent
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Class untuk mengenkapsulasi peristiwa perintah cluster yang akan diupload.
Ringkasan
Class bertingkat | |
---|---|
class |
ClusterCommandEvent.Builder
|
Konstanta | |
---|---|
int |
MAX_DATA_STRING_SIZE
|
Kolom | |
---|---|
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
|
Metode publik | |
---|---|
static
ClusterCommandEvent.Builder
|
createEventBuilder()
Membuat |
static
ClusterCommandEvent.Builder
|
createEventBuilder(ClusterCommand command)
Membuat |
String
|
getAttemptId()
|
String
|
getCommandTaskId()
|
|
getData()
|
|
getDeviceSerials()
|
String
|
getHostName()
|
InvocationStatus
|
getInvocationStatus()
|
long
|
getTimestamp()
|
ClusterCommandEvent.Type
|
getType()
|
JSONObject
|
toJSON()
|
String
|
toString()
|
Konstanta
MAX_DATA_STRING_SIZE
public static final int MAX_DATA_STRING_SIZE
Nilai Konstanta: 4.095 (0x00000fff)
Kolom
KESALAHAN_KUNCI_DATA
public static final String DATA_KEY_ERROR
{i>DATA_KEY_ERROR_ID_CODE<i}
public static final String DATA_KEY_ERROR_ID_CODE
DATA_KEY_ERROR_ID_NAME
public static final String DATA_KEY_ERROR_ID_NAME
STATUS_KUNCI_ERROR_DATA
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
KUNCI_DATA_FETCH_BUILD_TIME_MILLIS
public static final String DATA_KEY_FETCH_BUILD_TIME_MILLIS
KUNCI_DATA_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_PENYIAPAN_TIME_MILLIS
public static final String DATA_KEY_SETUP_TIME_MILLIS
DATA_KEY_SUBPROGRESS_COMMAND_ERROR
public static final String DATA_KEY_SUBPROCESS_COMMAND_ERROR
RINGKASAN_KUNCI_DATA
public static final String DATA_KEY_SUMMARY
DATA_KEY_TOTAL_TEST_COUNT
public static final String DATA_KEY_TOTAL_TEST_COUNT
Metode publik
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Membuat Builder
dasar.
Hasil | |
---|---|
ClusterCommandEvent.Builder |
Builder . |
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Membuat Builder
dasar untuk ClusterCommand
yang ditentukan.
Parameter | |
---|---|
command |
ClusterCommand |
Hasil | |
---|---|
ClusterCommandEvent.Builder |
Builder . |
IDPercobaan
public String getAttemptId ()
Hasil | |
---|---|
String |
getCommandTaskId
public String getCommandTaskId ()
Hasil | |
---|---|
String |
getData
publicgetData ()
Hasil | |
---|---|
|
getDeviceSerial
publicgetDeviceSerials ()
Hasil | |
---|---|
|
getHostName
public String getHostName ()
Hasil | |
---|---|
String |
getStempel waktu
public long getTimestamp ()
Hasil | |
---|---|
long |
{i>toJSON<i}
public JSONObject toJSON ()
Hasil | |
---|---|
JSONObject |
Menampilkan | |
---|---|
JSONException |
toString
public String toString ()
Hasil | |
---|---|
String |