GceAvdInfo

public class GceAvdInfo
extends Object

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


Struktura do przechowywania odpowiednich danych dla danej instancji GCE AVD.

Streszczenie

Klasy zagnieżdżone

class GceAvdInfo.LogFileEntry

Pola

public static final BUILD_VARS

Konstruktory publiczne

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

Metody publiczne

getBuildVars ()

Zwróć skrót informacji o zmiennej kompilacji urządzenia GCE AVD.

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

Zwróć mapę z lokalnych lub zdalnych ścieżek dziennika do typów.

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

Przeanalizuj dany plik, aby uzyskać informacje o urządzeniu GCE AVD.

static parseGceInfoFromOxygenClientOutput ( CommandResult oxygenRes, int remoteAdbPort)

Przeanalizuj dane wyjściowe wiersza poleceń z pliku binarnego klienta Oxygen, aby uzyskać dzierżawione informacje AVD.

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

Przeanalizuj podany ciąg, aby uzyskać informacje o urządzeniu GCE AVD.

void setDeviceOffset (Integer deviceOffset)
void setInstanceUser (String instanceUser)
void setIpPreconfigured (boolean isIpPreconfigured)
void setStatus ( GceAvdInfo.GceStatus status)
String toString ()

Pola

BUILD_VARS

public static final  BUILD_VARS

Konstruktory publiczne

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Parametry
instanceName String

hostAndPort HostAndPort

GceAvdInfo

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

Parametry
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

Metody publiczne

getBuildVars

public  getBuildVars ()

Zwróć skrót informacji o zmiennej kompilacji urządzenia GCE AVD.

Możliwe klucze zmiennych kompilacji są opisane w BUILD_VARS, na przykład: 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.

Zwroty

getDeviceOffset

public Integer getDeviceOffset ()

Zwroty
Integer

getErrorType

public ErrorIdentifier getErrorType ()

Zwroty
ErrorIdentifier

getErrors

public String getErrors ()

Zwroty
String

getInstanceUser

public String getInstanceUser ()

Zwroty
String

pobierz dzienniki

public  getLogs ()

Zwróć mapę z lokalnych lub zdalnych ścieżek dziennika do typów.

Zwroty

pobierzStatus

public GceAvdInfo.GceStatus getStatus ()

Zwroty
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

Zwroty
HostAndPort

nazwa instancji

public String instanceName ()

Zwroty
String

isIpPrekonfigurowany

public boolean isIpPreconfigured ()

Zwroty
boolean

parseGceInfoFromFile

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

Przeanalizuj dany plik, aby uzyskać informacje o urządzeniu GCE AVD.

Parametry
f File : plik ERROR(/File) do odczytu danych wyjściowych JSON ze sterownika GCE.

descriptor DeviceDescriptor : deskryptor urządzenia, które potrzebuje informacji.

remoteAdbPort int : zdalny port, który powinien być używany do połączenia adb

Zwroty
GceAvdInfo GceAvdInfo urządzenia, jeśli zostało znalezione, lub null, jeśli wystąpił błąd.

Rzuty
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Przeanalizuj dane wyjściowe wiersza poleceń z pliku binarnego klienta Oxygen, aby uzyskać dzierżawione informacje AVD.

Parametry
oxygenRes CommandResult : CommandResult z wykonania polecenia klienta Oxygen.

remoteAdbPort int : zdalny port, który powinien być używany do połączenia adb

Zwroty
ERROR(/List) pomyślnie wydzierżawionych urządzeń. Zgłosi błąd TargetSetupError , jeśli nie uda się wydzierżawić urządzenia.

Rzuty
TargetSetupError

parseGceInfoFromString

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

Przeanalizuj podany ciąg, aby uzyskać informacje o urządzeniu GCE AVD.

Parametry
data String : ciąg JSON.

descriptor DeviceDescriptor : deskryptor urządzenia, które potrzebuje informacji.

remoteAdbPort int : zdalny port, który powinien być używany do połączenia adb

Zwroty
GceAvdInfo GceAvdInfo urządzenia, jeśli zostało znalezione, lub null, jeśli wystąpi błąd.

Rzuty
TargetSetupError

ustawPrzesunięcie urządzenia

public void setDeviceOffset (Integer deviceOffset)

Parametry
deviceOffset Integer

setInstanceUser

public void setInstanceUser (String instanceUser)

Parametry
instanceUser String

setIp Wstępnie skonfigurowany

public void setIpPreconfigured (boolean isIpPreconfigured)

Parametry
isIpPreconfigured boolean

ustaw stan

public void setStatus (GceAvdInfo.GceStatus status)

Parametry
status GceAvdInfo.GceStatus

do Ciągu

public String toString ()

Zwroty
String