Cấu trúc để giữ dữ liệu liên quan cho một phiên bản GCE AVD nhất định.
các lớp lồng nhau |
---|
class | GceAvdInfo.LogFileEntry |
Lĩnh vực
BUILD_VARS
public static final BUILD_VARS
nhà thầu công cộng
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Thông số |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
Thông số |
---|
instanceName | String |
hostAndPort | HostAndPort |
errorType | ErrorIdentifier |
errors | String |
status | GceAvdInfo.GceStatus |
Phương thức công khai
getBuildVars
public getBuildVars ()
Trả về hàm 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.
getDeviceOffset
public Integer getDeviceOffset ()
nhận lỗi
public String getErrors ()
getInstanceUser
public String getInstanceUser ()
getLogs
public getLogs ()
Trả lại bản đồ từ các đường dẫn nhật ký cục bộ hoặc từ xa về các loại.
máy chủAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
public boolean isIpPreconfigured ()
phân tích cú pháp GceInfoFromFile
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 : Tệp 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 |
parseGceInfoFromOxygenClientOutput
public static parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes,
int remoteAdbPort)
Phân tích cú pháp đầu ra dòng lệnh đã cho từ tệp nhị phân máy khách Oxygen để lấy thông tin AVD đã thuê.
Thông số |
---|
oxygenRes | CommandResult : CommandResult từ thực thi lệnh máy khách Oxygen. |
remoteAdbPort | int : cổng từ xa sẽ được sử dụng cho kết nối adb |
phân tích cú phápGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích cú pháp một chuỗi đã cho để lấy thông tin thiết bị GCE AVD.
Thông số |
---|
data | String : Chuỗi 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 |
setDeviceOffset
public void setDeviceOffset (Integer deviceOffset)
Thông số |
---|
deviceOffset | Integer |
setInstanceUser
public void setInstanceUser (String instanceUser)
Thông số |
---|
instanceUser | String |
public void setIpPreconfigured (boolean isIpPreconfigured)
Thông số |
---|
isIpPreconfigured | boolean |
toString
public String toString ()
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2023-03-30 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Thiếu thông tin tôi cần"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Quá phức tạp/quá nhiều bước"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Đã lỗi thời"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Vấn đề về bản dịch"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Khác"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Dễ hiểu"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Giúp tôi giải quyết được vấn đề"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Khác"
}]