Événement de commande de cluster
public
class
ClusterCommandEvent
extends Object
implements
IClusterEvent
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Classe permettant d'encapsuler les événements de commande de cluster à importer.
Résumé
Classes imbriquées | |
---|---|
class |
ClusterCommandEvent.Builder
|
Constantes | |
---|---|
int |
MAX_DATA_STRING_SIZE
|
Champs | |
---|---|
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éthodes publiques | |
---|---|
static
ClusterCommandEvent.Builder
|
createEventBuilder()
Crée un |
static
ClusterCommandEvent.Builder
|
createEventBuilder(ClusterCommand command)
Crée 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
Valeur constante: 4095 (0x00000fff)
Champs
DATA_KEY_ERROR (ERREUR_CLÉ_DONNÉES)
public static final String DATA_KEY_ERROR
DATA_KEY_ERROR_ID_CODE (CODE_DE_DONNÉES_ERREUR_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
COUNT_DATA_KEY_PASSED_TEST_COUNT
public static final String DATA_KEY_PASSED_TEST_COUNT
DATA_KEY_CONFIGURATION_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 (DATA_KEY_TOTAL_TEST_COUNT)
public static final String DATA_KEY_TOTAL_TEST_COUNT
Méthodes publiques
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Crée un Builder
de base.
Renvoie | |
---|---|
ClusterCommandEvent.Builder |
un Builder . |
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder (ClusterCommand command)
Crée un Builder
de base pour le ClusterCommand
donné.
Paramètres | |
---|---|
command |
ClusterCommand |
Renvoie | |
---|---|
ClusterCommandEvent.Builder |
un Builder . |
getTentativeId
public String getAttemptId ()
Renvoie | |
---|---|
String |
getCommandTaskId
public String getCommandTaskId ()
Renvoie | |
---|---|
String |
getData
publicgetData ()
Renvoie | |
---|---|
|
getDeviceSerials
publicgetDeviceSerials ()
Renvoie | |
---|---|
|
getHostName
public String getHostName ()
Renvoie | |
---|---|
String |
getTimestamp
public long getTimestamp ()
Renvoie | |
---|---|
long |
JSON
public JSONObject toJSON ()
Renvoie | |
---|---|
JSONObject |
Génère | |
---|---|
JSONException |
toString
public String toString ()
Renvoie | |
---|---|
String |