GceAvdInfo

public class GceAvdInfo
extends Object

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


Belirli bir GCE AVD örneği için ilgili verileri tutacak yapı.

Özet

İç içe geçmiş sınıflar

class GceAvdInfo.LogFileEntry

Alanlar

public static final BUILD_VARS

Kamu inşaatçıları

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

Genel yöntemler

getBuildVars ()

GCE AVD cihazının derleme değişkeni bilgileri karmasını döndürün.

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

Haritayı yerel veya uzak günlük yollarından türlere döndürün.

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

GCE AVD cihaz bilgisini elde etmek için belirli bir dosyayı ayrıştırın.

static parseGceInfoFromOxygenClientOutput ( CommandResult oxygenRes, int remoteAdbPort)

Kiralanan AVD bilgilerini elde etmek için Oxygen istemci ikili programından belirli bir komut satırı çıktısını ayrıştırın.

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

GCE AVD cihaz bilgisini elde etmek için belirli bir dizeyi ayrıştırın.

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 ()

Alanlar

BUILD_VARS

public static final  BUILD_VARS

Kamu inşaatçıları

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Parametreler
instanceName String

hostAndPort HostAndPort

GceAvdInfo

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

Parametreler
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

Genel yöntemler

getBuildVars

public  getBuildVars ()

GCE AVD cihazının derleme değişkeni bilgileri karmasını döndürün.

Olası derleme değişkenleri anahtarları BUILD_VARS'ta açıklanmıştır; örneğin: 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.

İadeler

getDeviceOffset

public Integer getDeviceOffset ()

İadeler
Integer

getErrorType

public ErrorIdentifier getErrorType ()

İadeler
ErrorIdentifier

getErrors

public String getErrors ()

İadeler
String

getInstanceUser

public String getInstanceUser ()

İadeler
String

getLogs

public  getLogs ()

Haritayı yerel veya uzak günlük yollarından türlere döndürün.

İadeler

getSkipBugreportCollection

public boolean getSkipBugreportCollection ()

İadeler
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

İadeler
GceAvdInfo.GceStatus

ana bilgisayarAndPort

public HostAndPort hostAndPort ()

İadeler
HostAndPort

örnek isim

public String instanceName ()

İadeler
String

isIpÖnceden Yapılandırılmış

public boolean isIpPreconfigured ()

İadeler
boolean

ayrıştırmaGceInfoFromFile

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

GCE AVD cihaz bilgisini elde etmek için belirli bir dosyayı ayrıştırın.

Parametreler
f File : GCE Sürücüsünden JSON çıktısını okumak için ERROR(/File) dosyası.

descriptor DeviceDescriptor : Bilgiye ihtiyaç duyan cihazın tanımlayıcısı.

remoteAdbPort int : adb bağlantısı için kullanılması gereken uzak bağlantı noktası

İadeler
GceAvdInfo Bulunursa cihazın GceAvdInfo veya hata varsa null.

Atar
TargetSetupError

ayrıştırmaGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Kiralanan AVD bilgilerini elde etmek için Oxygen istemci ikili programından belirli bir komut satırı çıktısını ayrıştırın.

Parametreler
oxygenRes CommandResult : Oxygen istemcisi komut yürütmesinden CommandResult .

remoteAdbPort int : adb bağlantısı için kullanılması gereken uzak bağlantı noktası

İadeler
Başarıyla kiralanan cihazların ERROR(/List) . Bir cihazı kiralamak başarısız olursa TargetSetupError atılır.

Atar
TargetSetupError

ayrıştırmaGceInfoFromString

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

GCE AVD cihaz bilgisini elde etmek için belirli bir dizeyi ayrıştırın.

Parametreler
data String : JSON dizesi.

descriptor DeviceDescriptor : Bilgiye ihtiyaç duyan cihazın tanımlayıcısı.

remoteAdbPort int : adb bağlantısı için kullanılması gereken uzak bağlantı noktası

İadeler
GceAvdInfo Bulunursa cihazın GceAvdInfo veya hata varsa null.

Atar
TargetSetupError

setCihazOfset

public void setDeviceOffset (Integer deviceOffset)

Parametreler
deviceOffset Integer

setErrorType

public void setErrorType (ErrorIdentifier errorType)

Parametreler
errorType ErrorIdentifier

setErrors

public void setErrors (String errors)

Parametreler
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

Parametreler
instanceUser String

setIpÖnceden yapılandırılmış

public void setIpPreconfigured (boolean isIpPreconfigured)

Parametreler
isIpPreconfigured boolean

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipBugreportCollection)

Parametreler
skipBugreportCollection boolean

setDurum

public void setStatus (GceAvdInfo.GceStatus status)

Parametreler
status GceAvdInfo.GceStatus

toString

public String toString ()

İadeler
String