Informations GceAvd

public class GceAvdInfo
extends Object

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


Structurez les données de manière à stocker les données pertinentes pour une instance AVD GCE donnée.

Résumé

Classes imbriquées

class GceAvdInfo.LogFileEntry

 

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 compilation de l'appareil AVD GCE.

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

Renvoyez la carte des chemins d'accès aux journaux locaux ou distants vers les types.

String getOxygenationDeviceId()
boolean getSkipDeviceLogCollection()
GceAvdInfo.GceStatus getStatus()
HostAndPort hostAndPort()
String instanceName()
boolean isIpPreconfigured()
boolean isOxygenationDevice()
static GceAvdInfo parseGceInfoFromFile(File f, DeviceDescriptor descriptor, int remoteAdbPort)

Analysez un fichier donné pour obtenir les informations sur l'appareil AVD GCE.

static parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, int remoteAdbPort)

Analyser la sortie d'une ligne de commande donnée à partir du binaire du client Oxygen pour obtenir des informations sur l'AVD loué

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

Analysez une chaîne donnée pour obtenir les informations sur l'appareil AVD GCE.

void setDeviceOffset(Integer deviceOffset)
void setErrorType(ErrorIdentifier errorType)
void setErrors(String errors)
void setInstanceUser(String instanceUser)
void setIpPreconfigured(boolean isIpPreconfigured)
void setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

Champs

VARIANTES_DE_COMPILATION

public static final  BUILD_VARS

Constructeurs publics

Informations GceAvd

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Paramètres
instanceName String

hostAndPort HostAndPort

Informations GceAvd

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 compilation de l'appareil AVD GCE.

Les clés de variables de compilation possibles sont décrites dans CREATE_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.

Renvoie

getDeviceOffset

public Integer getDeviceOffset ()

Renvoie
Integer

getErrorType

public ErrorIdentifier getErrorType ()

Renvoie
ErrorIdentifier

getErrors

public String getErrors ()

Renvoie
String

Utilisateur d'instance

public String getInstanceUser ()

Renvoie
String

getLogs

public  getLogs ()

Renvoyez la carte des chemins d'accès aux journaux locaux ou distants vers les types.

Renvoie

getOxygenationDeviceId

public String getOxygenationDeviceId ()

Renvoie
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

Renvoie
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

Renvoie
GceAvdInfo.GceStatus

hôteEtPort

public HostAndPort hostAndPort ()

Renvoie
HostAndPort

InstanceName (Nom de l'instance)

public String instanceName ()

Renvoie
String

isIpPreconfiguré

public boolean isIpPreconfigured ()

Renvoie
boolean

IsOxygenationDevice

public boolean isOxygenationDevice ()

Renvoie
boolean

parseGceInfoFromFile

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

Analysez un fichier donné pour obtenir les informations sur l'appareil AVD GCE.

Paramètres
f File: fichier ERROR(/File) permettant de lire la sortie JSON à partir du pilote GCE.

descriptor DeviceDescriptor: descripteur de l'appareil qui a besoin des informations.

remoteAdbPort int: port distant à utiliser pour la connexion adb

Renvoie
GceAvdInfo GceAvdInfo de l'appareil s'il est trouvé, ou nul en cas d'erreur.

Génère
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Analyser la sortie d'une ligne de commande donnée à partir du binaire du client Oxygen pour obtenir des informations sur l'AVD loué

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

remoteAdbPort int: port distant à utiliser pour la connexion adb

Renvoie
ERROR(/List) des appareils ont bien été loués. Une erreur TargetSetupError est renvoyée en cas d'échec de la location d'un appareil.

Génère
TargetSetupError

parseGceInfoFromString

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

Analysez une chaîne donnée pour obtenir les informations sur l'appareil AVD GCE.

Paramètres
data String: chaîne JSON.

descriptor DeviceDescriptor: descripteur de l'appareil qui a besoin des informations.

remoteAdbPort int: port distant à utiliser pour la connexion adb

Renvoie
GceAvdInfo GceAvdInfo de l'appareil s'il est trouvé, ou nul en cas d'erreur.

Génère
TargetSetupError

setDeviceOffset

public void setDeviceOffset (Integer deviceOffset)

Paramètres
deviceOffset Integer

setErrorType

public void setErrorType (ErrorIdentifier errorType)

Paramètres
errorType ErrorIdentifier

setErrors

public void setErrors (String errors)

Paramètres
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

Paramètres
instanceUser String

setIpPreconfiguré

public void setIpPreconfigured (boolean isIpPreconfigured)

Paramètres
isIpPreconfigured boolean

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipDeviceLogCollection)

Paramètres
skipDeviceLogCollection boolean

setSkipDeviceLogCollection

public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)

Paramètres
skipDeviceLogCollection boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Paramètres
status GceAvdInfo.GceStatus

toString

public String toString ()

Renvoie
String