GceAvdInfo

public class GceAvdInfo
extends Object

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


โครงสร้างเพื่อเก็บข้อมูลที่เกี่ยวข้องสำหรับอินสแตนซ์ GCE AVD ที่ระบุ

สรุป

คลาสที่ซ้อนกัน

class GceAvdInfo.LogFileEntry

เขตข้อมูล

public static final BUILD_VARS

ผู้รับเหมาก่อสร้างสาธารณะ

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

วิธีการสาธารณะ

getBuildVars ()

ส่งคืนแฮชข้อมูลตัวแปรบิวด์ของอุปกรณ์ GCE AVD

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

คืนแผนที่จากเส้นทางบันทึกในเครื่องหรือระยะไกลเป็นประเภท

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

แยกวิเคราะห์ไฟล์ที่กำหนดเพื่อรับข้อมูลอุปกรณ์ GCE AVD

static parseGceInfoFromOxygenClientOutput ( CommandResult oxygenRes, int remoteAdbPort)

แยกวิเคราะห์เอาต์พุตบรรทัดคำสั่งที่กำหนดจากไบนารีของไคลเอ็นต์ Oxygen เพื่อรับข้อมูล AVD ที่เช่า

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

แยกวิเคราะห์สตริงที่กำหนดเพื่อรับข้อมูลอุปกรณ์ GCE AVD

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

เขตข้อมูล

BUILD_VARS

public static final  BUILD_VARS

ผู้รับเหมาก่อสร้างสาธารณะ

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

พารามิเตอร์
instanceName String

hostAndPort HostAndPort

GceAvdInfo

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

พารามิเตอร์
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

วิธีการสาธารณะ

getBuildVars.getBuildVars

public  getBuildVars ()

ส่งคืนแฮชข้อมูลตัวแปรบิวด์ของอุปกรณ์ GCE AVD

คีย์ตัวแปรบิลด์ที่เป็นไปได้อธิบายไว้ใน BUILD_VARS เช่น: 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

การส่งคืน

รับอุปกรณ์ออฟเซ็ต

public Integer getDeviceOffset ()

การส่งคืน
Integer

รับErrorType

public ErrorIdentifier getErrorType ()

การส่งคืน
ErrorIdentifier

ได้รับข้อผิดพลาด

public String getErrors ()

การส่งคืน
String

getInstanceUser

public String getInstanceUser ()

การส่งคืน
String

getLogs

public  getLogs ()

คืนแผนที่จากเส้นทางบันทึกในเครื่องหรือระยะไกลเป็นประเภท

การส่งคืน

getSkipBugreportCollection

public boolean getSkipBugreportCollection ()

การส่งคืน
boolean

รับสถานะ

public GceAvdInfo.GceStatus getStatus ()

การส่งคืน
GceAvdInfo.GceStatus

โฮสต์และพอร์ต

public HostAndPort hostAndPort ()

การส่งคืน
HostAndPort

ชื่ออินสแตนซ์

public String instanceName ()

การส่งคืน
String

isIp กำหนดค่าล่วงหน้าแล้ว

public boolean isIpPreconfigured ()

การส่งคืน
boolean

แยกวิเคราะห์ GceInfoFromFile

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

แยกวิเคราะห์ไฟล์ที่กำหนดเพื่อรับข้อมูลอุปกรณ์ GCE AVD

พารามิเตอร์
f File : ไฟล์ ERROR(/File) เพื่ออ่านเอาต์พุต JSON จากไดรเวอร์ GCE

descriptor DeviceDescriptor : ตัวอธิบายของอุปกรณ์ที่ต้องการข้อมูล

remoteAdbPort int : พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb

การส่งคืน
GceAvdInfo GceAvdInfo ของอุปกรณ์หากพบ หรือเป็นค่าว่างหากมีข้อผิดพลาด

ขว้าง
TargetSetupError

แยกวิเคราะห์ GceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

แยกวิเคราะห์เอาต์พุตบรรทัดคำสั่งที่กำหนดจากไบนารีของไคลเอ็นต์ Oxygen เพื่อรับข้อมูล AVD ที่เช่า

พารามิเตอร์
oxygenRes CommandResult : CommandResult จากการดำเนินการคำสั่งไคลเอ็นต์ Oxygen

remoteAdbPort int : พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb

การส่งคืน
ERROR(/List) ของอุปกรณ์ที่เช่าสำเร็จแล้ว จะส่ง TargetSetupError หากไม่สามารถเช่าอุปกรณ์ได้

ขว้าง
TargetSetupError

แยกวิเคราะห์ GceInfoFromString

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

แยกวิเคราะห์สตริงที่กำหนดเพื่อรับข้อมูลอุปกรณ์ GCE AVD

พารามิเตอร์
data String : สตริง JSON

descriptor DeviceDescriptor : ตัวอธิบายของอุปกรณ์ที่ต้องการข้อมูล

remoteAdbPort int : พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb

การส่งคืน
GceAvdInfo GceAvdInfo ของอุปกรณ์หากพบ หรือเป็นค่าว่างหากมีข้อผิดพลาด

ขว้าง
TargetSetupError

ตั้งค่าอุปกรณ์ออฟเซ็ต

public void setDeviceOffset (Integer deviceOffset)

พารามิเตอร์
deviceOffset Integer

ตั้งค่าErrorType

public void setErrorType (ErrorIdentifier errorType)

พารามิเตอร์
errorType ErrorIdentifier

ตั้งค่าข้อผิดพลาด

public void setErrors (String errors)

พารามิเตอร์
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

พารามิเตอร์
instanceUser String

setIp กำหนดค่าล่วงหน้าแล้ว

public void setIpPreconfigured (boolean isIpPreconfigured)

พารามิเตอร์
isIpPreconfigured boolean

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipBugreportCollection)

พารามิเตอร์
skipBugreportCollection boolean

ตั้งค่าสถานะ

public void setStatus (GceAvdInfo.GceStatus status)

พารามิเตอร์
status GceAvdInfo.GceStatus

toString

public String toString ()

การส่งคืน
String