GceAvdInfo

public class GceAvdInfo
extends Object

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


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

สรุป

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

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

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

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)

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

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

public  getBuildVars ()

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

คีย์ตัวแปรการสร้างที่เป็นไปได้จะอธิบายไว้ใน 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

คิกรีเทิร์น

getErrorType

public ErrorIdentifier getErrorType ()

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

getErrors

public String getErrors ()

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

getStatus

public GceAvdInfo.GceStatus getStatus ()

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

hostAndPort

public HostAndPort hostAndPort ()

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

instanceName

public String instanceName ()

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

parseGceInfoFromFile

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 ของอุปกรณ์หากพบ หรือ Null หากเกิดข้อผิดพลาด

การโยน
TargetSetupError

parseGceInfoFromString

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

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

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

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

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

คิกรีเทิร์น
GceAvdInfo GceAvdInfo ของอุปกรณ์หากพบ หรือ Null หากเกิดข้อผิดพลาด

การโยน
TargetSetupError

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

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

toString

public String toString ()

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