Evento de comando
public
class
ClusterCommandEvent
extends Object
implements
IClusterEvent
Objeto java.lang. | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent. |
Una clase para encapsular los eventos de comandos del clúster que se subirán.
Resumen
Clases anidadas | |
---|---|
class |
ClusterCommandEvent.Builder
|
Constantes | |
---|---|
int |
MAX_DATA_STRING_SIZE
|
Campos | |
---|---|
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
|
Métodos públicos | |
---|---|
static
ClusterCommandEvent.Builder
|
createEventBuilder()
Crea un |
static
ClusterCommandEvent.Builder
|
createEventBuilder(ClusterCommand command)
Crea un |
String
|
getAttemptId()
|
String
|
getCommandTaskId()
|
|
getData()
|
|
getDeviceSerials()
|
String
|
getHostName()
|
InvocationStatus
|
getInvocationStatus()
|
long
|
getTimestamp()
|
ClusterCommandEvent.Type
|
getType()
|
JSONObject
|
toJSON()
|
String
|
toString()
|
Constantes
MAX_DATA_STRING_SIZE
public static final int MAX_DATA_STRING_SIZE
Valor constante: 4,095 (0x00000fff)
Campos
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
ESTADO DE ERROR DE 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
Métodos públicos
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Crea un Builder
base.
Muestra | |
---|---|
ClusterCommandEvent.Builder |
Builder |
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Crea un Builder
base para el ClusterCommand
determinado.
Parámetros | |
---|---|
command |
ClusterCommand |
Muestra | |
---|---|
ClusterCommandEvent.Builder |
Builder |
IDdelintento
public String getAttemptId ()
Muestra | |
---|---|
String |
ID de tarea de comando get
public String getCommandTaskId ()
Muestra | |
---|---|
String |
getData
publicgetData ()
Muestra | |
---|---|
|
getDeviceSerials
publicgetDeviceSerials ()
Muestra | |
---|---|
|
getHostName
public String getHostName ()
Muestra | |
---|---|
String |
getTimestamp
public long getTimestamp ()
Muestra | |
---|---|
long |
toJSON
public JSONObject toJSON ()
Muestra | |
---|---|
JSONObject |
Arroja | |
---|---|
JSONException |
toString
public String toString ()
Muestra | |
---|---|
String |