ClusterCommandEventClusterCommandEvent
public class ClusterCommandEvent
extends Object
implements IClusterEvent
java.lang.Object | |
↳ | com.android.tradefed.cluster.ClusterCommandEvent |
Une classe pour encapsuler les événements de commande de cluster à télécharger.
Résumé
Classes imbriquées | |
---|---|
class | ClusterCommandEvent.Builder
|
Constantes | |
---|---|
int | MAX_DATA_STRING_SIZE
|
Des 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)
Des champs
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
Méthodes publiques
createEventBuilder
public static ClusterCommandEvent.Builder createEventBuilder ()
Crée un Builder
de base.
Retour | |
---|---|
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 |
Retour | |
---|---|
ClusterCommandEvent.Builder | un Builder . |
getAttemptId
public String getAttemptId ()
Retour | |
---|---|
String |
getCommandTaskId
public String getCommandTaskId ()
Retour | |
---|---|
String |
getData
publicgetData ()
Retour | |
---|---|
getDeviceSerials
publicgetDeviceSerials ()
Retour | |
---|---|
getHostName
public String getHostName ()
Retour | |
---|---|
String |
getTimestamp
public long getTimestamp ()
Retour | |
---|---|
long |
versJSON
public JSONObject toJSON ()
Retour | |
---|---|
JSONObject |
Lance | |
---|---|
JSONException |
toString
public String toString ()
Retour | |
---|---|
String |
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2023/03/30 (UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Il n'y a pas l'information dont j'ai besoin"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Trop compliqué/Trop d'étapes"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Obsolète"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problème de traduction"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Mauvais exemple/Erreur de code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Autre"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Facile à comprendre"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"J'ai pu résoudre mon problème"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Autre"
}]