GceAvdInfo
public class GceAvdInfo
extends Object
java.lang.Object |
↳ | com.android.tradefed.device.cloud.GceAvdInfo |
Cấu trúc để lưu giữ dữ liệu có liên quan cho một phiên bản GCE AVD nhất định.
Tóm lược
Các lớp lồng nhau |
---|
enum | GceAvdInfo.GceStatus |
Lĩnh vực
BUILD_VARS
public static final BUILD_VARS
Công cụ xây dựng
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Thông số |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
String errors,
GceAvdInfo.GceStatus status)
Thông số |
---|
instanceName | String |
hostAndPort | HostAndPort |
errors | String |
status | GceAvdInfo.GceStatus |
Phương pháp công khai
getBuildVars
public getBuildVars ()
Trả về băm thông tin biến bản dựng của thiết bị GCE AVD.
Các khóa biến bản dựng có thể được mô tả trong BUILD_VARS, ví dụ: 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.
getErrors
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích cú pháp một tệp nhất định để lấy thông tin thiết bị GCE AVD.
Thông số |
---|
f | File : File ERROR(/File) để đọc đầu ra JSON từ Trình điều khiển GCE. |
descriptor | DeviceDescriptor : bộ mô tả của thiết bị cần thông tin. |
remoteAdbPort | int : cổng từ xa sẽ được sử dụng cho kết nối adb |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích cú pháp một chuỗi nhất định để lấy thông tin thiết bị GCE AVD.
Thông số |
---|
data | String : String JSON. |
descriptor | DeviceDescriptor : bộ mô tả của thiết bị cần thông tin. |
remoteAdbPort | int : cổng từ xa sẽ được sử dụng cho kết nối adb |
toString
public String toString ()
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.