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 Konstruktoren

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

Öffentliche Methoden

getBuildVars()

Gibt den Hash der Buildvariableninformationen 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)

Eine bestimmte Datei parsen, um die Geräteinformationen der GCE-AVD zu erhalten

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

Einen bestimmten String parsen, um die GCE-AVD-Geräteinformationen zu erhalten.

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

Felder

BUILD_VARS

public static final  BUILD_VARS

Öffentliche Konstruktoren

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 Hash der Buildvariableninformationen des GCE-AVD-Geräts zurück.

Mögliche Schlüssel für Build-Variablen werden in BUILD_VARS beschrieben, z. B.: 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.

Returns

getErrorType

public ErrorIdentifier getErrorType ()

Returns
ErrorIdentifier

getErrors

public String getErrors ()

Returns
String

getStatus

public GceAvdInfo.GceStatus getStatus ()

Returns
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

Returns
HostAndPort

instanceName

public String instanceName ()

Returns
String

parseGceInfoFromFile

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

Eine bestimmte Datei parsen, um die Geräteinformationen der GCE-AVD zu erhalten

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

descriptor DeviceDescriptor: den Deskriptor des Geräts, für das die Informationen benötigt werden.

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

Returns
GceAvdInfo die GceAvdInfo des Geräts, falls es gefunden wurde, oder „null“, falls ein Fehler aufgetreten ist.

Ausgabe
TargetSetupError

parseGceInfoFromString

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

Einen bestimmten String parsen, um die GCE-AVD-Geräteinformationen zu erhalten.

Parameter
data String: JSON-String.

descriptor DeviceDescriptor: den Deskriptor des Geräts, für das die Informationen benötigt werden.

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

Returns
GceAvdInfo die GceAvdInfo des Geräts, falls es gefunden wurde, oder „null“, falls ein Fehler aufgetreten ist.

Ausgabe
TargetSetupError

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Parameter
status GceAvdInfo.GceStatus

toString

public String toString ()

Returns
String