GceAvdInfo

public class GceAvdInfo
extends Object

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


Struktur zum Speichern relevanter Daten für eine bestimmte GCE AVD-Instanz.

Zusammenfassung

Verschachtelte Klassen

enum GceAvdInfo.GceStatus

Felder

public static final BUILD_VARS

Öffentliche Bauträger

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

Öffentliche Methoden

getBuildVars ()

Gibt den Build-Variablen-Informations-Hash des GCE AVD-Geräts zurück.

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

Analysieren Sie eine bestimmte Datei, um die GCE AVD-Geräteinformationen zu erhalten.

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

Analysieren Sie eine bestimmte Zeichenfolge, um die GCE AVD-Geräteinformationen zu erhalten.

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

Felder

BUILD_VARS

public static final  BUILD_VARS

Öffentliche Bauträger

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Parameter
instanceName String

hostAndPort HostAndPort

GceAvdInfo

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

Parameter
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

Öffentliche Methoden

getBuildVars

public  getBuildVars ()

Gibt den Build-Variablen-Informations-Hash des GCE AVD-Geräts zurück.

Mögliche Build-Variablenschlüssel werden in BUILD_VARS beschrieben, zum Beispiel: 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.

Kehrt zurück

getErrorType

public ErrorIdentifier getErrorType ()

Kehrt zurück
ErrorIdentifier

getErrors

public String getErrors ()

Kehrt zurück
String

Status bekommen

public GceAvdInfo.GceStatus getStatus ()

Kehrt zurück
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

Kehrt zurück
HostAndPort

Instanzname

public String instanceName ()

Kehrt zurück
String

parseGceInfoFromFile

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

Analysieren Sie eine bestimmte Datei, um die GCE AVD-Geräteinformationen zu erhalten.

Parameter
f File : ERROR(/File) -Datei zum Lesen der JSON-Ausgabe vom GCE-Treiber.

descriptor DeviceDescriptor : der Deskriptor des Geräts, das die Informationen benötigt.

remoteAdbPort int : der Remote-Port, der für die ADB-Verbindung verwendet werden soll

Kehrt zurück
GceAvdInfo die GceAvdInfo des Geräts, falls gefunden, oder null, wenn ein Fehler auftritt.

Würfe
TargetSetupError

parseGceInfoFromString

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

Analysieren Sie eine bestimmte Zeichenfolge, um die GCE AVD-Geräteinformationen zu erhalten.

Parameter
data String : JSON-String.

descriptor DeviceDescriptor : der Deskriptor des Geräts, das die Informationen benötigt.

remoteAdbPort int : der Remote-Port, der für die ADB-Verbindung verwendet werden soll

Kehrt zurück
GceAvdInfo die GceAvdInfo des Geräts, falls gefunden, oder null, wenn ein Fehler auftritt.

Würfe
TargetSetupError

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Parameter
status GceAvdInfo.GceStatus

toString

public String toString ()

Kehrt zurück
String