ข้อมูล GceAvd

public class GceAvdInfo
extends Object

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


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

สรุป

ชั้นเรียนที่ซ้อนกัน

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

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

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

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

static parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, int remoteAdbPort)

แยกวิเคราะห์เอาต์พุตของบรรทัดคำสั่งที่กำหนดจากไบนารีไคลเอ็นต์ออกซิเจนเพื่อรับข้อมูล 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 skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

ช่อง

ตัวแปร BUILD

public static final  BUILD_VARS

ช่างก่อสร้างสาธารณะ

ข้อมูล GceAvd

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

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

hostAndPort HostAndPort

ข้อมูล GceAvd

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

public  getBuildVars ()

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

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

getErrorType

public ErrorIdentifier getErrorType ()

คิกรีเทิร์น
ErrorIdentifier

getErrors

public String getErrors ()

คิกรีเทิร์น
String

getInstanceUser

public String getInstanceUser ()

คิกรีเทิร์น
String

getLogs

public  getLogs ()

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

คิกรีเทิร์น

รหัสอุปกรณ์รับออกซิเจน

public String getOxygenationDeviceId ()

คิกรีเทิร์น
String

ข้ามการรวบรวมบันทึกอุปกรณ์

public boolean getSkipDeviceLogCollection ()

คิกรีเทิร์น
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

คิกรีเทิร์น
GceAvdInfo.GceStatus

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

public HostAndPort hostAndPort ()

คิกรีเทิร์น
HostAndPort

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

public String instanceName ()

คิกรีเทิร์น
String

กำหนดค่า isIpPre

public boolean isIpPreconfigured ()

คิกรีเทิร์น
boolean

อุปกรณ์ออกซิเจน

public boolean isOxygenationDevice ()

คิกรีเทิร์น
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

แยกวิเคราะห์GceInfoFromOxygenClientเอาต์พุต

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

แยกวิเคราะห์เอาต์พุตของบรรทัดคำสั่งที่กำหนดจากไบนารีไคลเอ็นต์ออกซิเจนเพื่อรับข้อมูล 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

setErrorType

public void setErrorType (ErrorIdentifier errorType)

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

setErrors

public void setErrors (String errors)

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

setInstanceUser

public void setInstanceUser (String instanceUser)

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

setIpPreConfigure

public void setIpPreconfigured (boolean isIpPreconfigured)

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

ตั้งการข้ามรายงานข้อบกพร่อง

public void setSkipBugreportCollection (boolean skipDeviceLogCollection)

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

ตั้งค่าข้ามการบันทึกของอุปกรณ์

public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)

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

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

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

toString

public String toString ()

คิกรีเทิร์น
String