Evento de comando de clúster
public class ClusterCommandEvent
extends Object
implements IClusterEvent
java.lang.Objeto | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Una clase para encapsular los eventos de comando del clúster que se cargará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: 4095 (0x00000fff)
Campos
DATOS_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
DATOS_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
DATOS_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
crearEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Crea un Builder
base.
Devoluciones | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
crearEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Crea un Builder
base para el ClusterCommand
dado.
Parámetros | |
---|---|
command | ClusterCommand |
Devoluciones | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
obtenerID de intento
public String getAttemptId ()
Devoluciones | |
---|---|
String |
obtener ID de tarea de comando
public String getCommandTaskId ()
Devoluciones | |
---|---|
String |
obtener datos
publicgetData ()
Devoluciones | |
---|---|
getDeviceSerials
publicgetDeviceSerials ()
Devoluciones | |
---|---|
obtener nombre de host
public String getHostName ()
Devoluciones | |
---|---|
String |
obtener estado de invocación
public InvocationStatus getInvocationStatus ()
Devoluciones | |
---|---|
InvocationStatus |
obtener marca de tiempo
public long getTimestamp ()
Devoluciones | |
---|---|
long |
a JSON
public JSONObject toJSON ()
Devoluciones | |
---|---|
JSONObject |
Lanza | |
---|---|
JSONException |
Encadenar
public String toString ()
Devoluciones | |
---|---|
String |
Evento de comando de clúster
public class ClusterCommandEvent
extends Object
implements IClusterEvent
java.lang.Objeto | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Una clase para encapsular los eventos de comando del clúster que se cargará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: 4095 (0x00000fff)
Campos
DATOS_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
DATOS_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
DATOS_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
crearEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Crea un Builder
base.
Devoluciones | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
crearEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Crea un Builder
base para el ClusterCommand
dado.
Parámetros | |
---|---|
command | ClusterCommand |
Devoluciones | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
obtenerID de intento
public String getAttemptId ()
Devoluciones | |
---|---|
String |
obtener ID de tarea de comando
public String getCommandTaskId ()
Devoluciones | |
---|---|
String |
obtener datos
publicgetData ()
Devoluciones | |
---|---|
getDeviceSerials
publicgetDeviceSerials ()
Devoluciones | |
---|---|
obtener nombre de host
public String getHostName ()
Devoluciones | |
---|---|
String |
obtener estado de invocación
public InvocationStatus getInvocationStatus ()
Devoluciones | |
---|---|
InvocationStatus |
obtener marca de tiempo
public long getTimestamp ()
Devoluciones | |
---|---|
long |
a JSON
public JSONObject toJSON ()
Devoluciones | |
---|---|
JSONObject |
Lanza | |
---|---|
JSONException |
Encadenar
public String toString ()
Devoluciones | |
---|---|
String |
Evento de comando de clúster
public class ClusterCommandEvent
extends Object
implements IClusterEvent
java.lang.Objeto | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Una clase para encapsular los eventos de comando del clúster que se cargará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: 4095 (0x00000fff)
Campos
DATOS_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
DATOS_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
DATOS_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
crearEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Crea un Builder
base.
Devoluciones | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
crearEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Crea un Builder
base para el ClusterCommand
dado.
Parámetros | |
---|---|
command | ClusterCommand |
Devoluciones | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
obtenerID de intento
public String getAttemptId ()
Devoluciones | |
---|---|
String |
obtener ID de tarea de comando
public String getCommandTaskId ()
Devoluciones | |
---|---|
String |
obtener datos
publicgetData ()
Devoluciones | |
---|---|
getDeviceSerials
publicgetDeviceSerials ()
Devoluciones | |
---|---|
obtener nombre de host
public String getHostName ()
Devoluciones | |
---|---|
String |
obtener estado de invocación
public InvocationStatus getInvocationStatus ()
Devoluciones | |
---|---|
InvocationStatus |
obtener marca de tiempo
public long getTimestamp ()
Devoluciones | |
---|---|
long |
a JSON
public JSONObject toJSON ()
Devoluciones | |
---|---|
JSONObject |
Lanza | |
---|---|
JSONException |
Encadenar
public String toString ()
Devoluciones | |
---|---|
String |
El contenido y el código de ejemplo de esta página están sujetos a las licencias que se describen en la licencia de contenido. Java y OpenJDK son marcas registradas de Oracle o sus entidades asociadas.
Última actualización: 2023-12-01 (UTC).