GceAvdInfo

public class GceAvdInfo
extends Object

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


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

สรุป

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

enum GceAvdInfo.GceStatus

เขตข้อมูล

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

ErrorIdentifier getErrorType ()
String getErrors ()
GceAvdInfo.GceStatus getStatus ()
HostAndPort hostAndPort ()
String instanceName ()
static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)

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

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

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

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

การส่งคืน

รับErrorType

public ErrorIdentifier getErrorType ()

การส่งคืน
ErrorIdentifier

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

public String getErrors ()

การส่งคืน
String

รับสถานะ

public GceAvdInfo.GceStatus getStatus ()

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

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

public HostAndPort hostAndPort ()

การส่งคืน
HostAndPort

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

public String instanceName ()

การส่งคืน
String

แยกวิเคราะห์ 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

แยกวิเคราะห์ 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 setStatus (GceAvdInfo.GceStatus status)

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

toString

public String toString ()

การส่งคืน
String