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

class GceAvdInfo.LogFileEntry

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.

Integer getDeviceOffset ()
ErrorIdentifier getErrorType ()
String getErrors ()
String getInstanceUser ()
getLogs ()

Renvoie la carte des chemins de journaux locaux ou distants aux types.

boolean getSkipBugreportCollection ()
GceAvdInfo.GceStatus getStatus ()
HostAndPort hostAndPort ()
String instanceName ()
boolean isIpPreconfigured ()
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 parseGceInfoFromOxygenClientOutput ( CommandResult oxygenRes, int remoteAdbPort)

Analysez une sortie de ligne de commande donnée du binaire du client Oxygen pour obtenir les informations AVD louées.

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 setDeviceOffset (Integer deviceOffset)
void setErrorType ( ErrorIdentifier errorType)
void setErrors (String errors)
void setInstanceUser (String instanceUser)
void setIpPreconfigured (boolean isIpPreconfigured)
void setSkipBugreportCollection (boolean skipBugreportCollection)
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

getDeviceOffset

public Integer getDeviceOffset ()

Retour
Integer

getErrorType

public ErrorIdentifier getErrorType ()

Retour
ErrorIdentifier

obtenirErreurs

public String getErrors ()

Retour
String

getInstanceUser

public String getInstanceUser ()

Retour
String

getLogs

public  getLogs ()

Renvoie la carte des chemins de journaux locaux ou distants aux types.

Retour

getSkipBugreportCollection

public boolean getSkipBugreportCollection ()

Retour
boolean

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

isIpPréconfiguré

public boolean isIpPreconfigured ()

Retour
boolean

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

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Analysez une sortie de ligne de commande donnée du binaire du client Oxygen pour obtenir les informations AVD louées.

Paramètres
oxygenRes CommandResult : l'exécution de la commande CommandResult du client Oxygen.

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

Retour
ERROR(/List) des appareils loués avec succès. Lèvera TargetSetupError en cas d'échec de la location d'un appareil.

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

setDeviceOffset

public void setDeviceOffset (Integer deviceOffset)

Paramètres
deviceOffset Integer

setErrorType

public void setErrorType (ErrorIdentifier errorType)

Paramètres
errorType ErrorIdentifier

setErreurs

public void setErrors (String errors)

Paramètres
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

Paramètres
instanceUser String

setIpPréconfiguré

public void setIpPreconfigured (boolean isIpPreconfigured)

Paramètres
isIpPreconfigured boolean

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipBugreportCollection)

Paramètres
skipBugreportCollection boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Paramètres
status GceAvdInfo.GceStatus

versChaîne

public String toString ()

Retour
String