GceAvdInfo

public class GceAvdInfo
extends Object

java.lang.Object
com.android.tradefed.device.cloud.GceAvdInfo


Structure permettant de contenir les données pertinentes pour une instance GCE AVD donnée.

Résumé

Classes imbriquées

enum GceAvdInfo.GceStatus

Des champs

public static final BUILD_VARS

Constructeurs publics

GceAvdInfo (String instanceName, HostAndPort hostAndPort)
GceAvdInfo (String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)

Méthodes publiques

getBuildVars ()

Renvoie le hachage des informations sur la variable de construction du périphérique GCE AVD.

ErrorIdentifier getErrorType ()
String getErrors ()
GceAvdInfo.GceStatus getStatus ()
HostAndPort hostAndPort ()
String instanceName ()
static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)

Analysez un fichier donné pour obtenir les informations sur le périphérique GCE AVD.

static GceAvdInfo parseGceInfoFromString (String data, DeviceDescriptor descriptor, int remoteAdbPort)

Analysez une chaîne donnée pour obtenir les informations sur le périphérique GCE AVD.

void setStatus ( GceAvdInfo.GceStatus status)
String toString ()

Des champs

CONSTRUIRE_VARS

public static final  BUILD_VARS

Constructeurs publics

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Paramètres
instanceName String

hostAndPort HostAndPort

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort, 
                ErrorIdentifier errorType, 
                String errors, 
                GceAvdInfo.GceStatus status)

Paramètres
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

Méthodes publiques

getBuildVars

public  getBuildVars ()

Renvoie le hachage des informations sur la variable de construction du périphérique GCE AVD.

Les clés de variables de construction possibles sont décrites dans BUILD_VARS, par exemple : build_id, build_target, branch, kernel_build_id, kernel_build_target, kernel_branch, system_build_id, system_build_target, system_branch, emulator_build_id, emulator_build_target, emulator_branch.

Retour

getErrorType

public ErrorIdentifier getErrorType ()

Retour
ErrorIdentifier

obtenirErreurs

public String getErrors ()

Retour
String

obtenir le statut

public GceAvdInfo.GceStatus getStatus ()

Retour
GceAvdInfo.GceStatus

hôteEtPort

public HostAndPort hostAndPort ()

Retour
HostAndPort

nom de l'instance

public String instanceName ()

Retour
String

parseGceInfoFromFile

public static GceAvdInfo parseGceInfoFromFile (File f, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

Analysez un fichier donné pour obtenir les informations sur le périphérique GCE AVD.

Paramètres
f File : fichier ERROR(/File) pour lire la sortie JSON du pilote GCE.

descriptor DeviceDescriptor : le descripteur de l’appareil qui a besoin de l’information.

remoteAdbPort int : le port distant qui doit être utilisé pour la connexion adb

Retour
GceAvdInfo le GceAvdInfo du périphérique s'il est trouvé, ou null en cas d'erreur.

Jetés
TargetSetupError

parseGceInfoFromString

public static GceAvdInfo parseGceInfoFromString (String data, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

Analysez une chaîne donnée pour obtenir les informations sur le périphérique GCE AVD.

Paramètres
data String : chaîne JSON.

descriptor DeviceDescriptor : le descripteur de l’appareil qui a besoin de l’information.

remoteAdbPort int : le port distant qui doit être utilisé pour la connexion adb

Retour
GceAvdInfo le GceAvdInfo du périphérique s'il est trouvé, ou null en cas d'erreur.

Jetés
TargetSetupError

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Paramètres
status GceAvdInfo.GceStatus

versChaîne

public String toString ()

Retour
String