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 xây dựng công cộng
Thông tin GceAvd
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Thông số |
---|
instanceName | String |
hostAndPort | HostAndPort |
Thông tin GceAvd
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 pháp công khai
getBuildVars
public getBuildVars ()
Trả về hàm băm thông tin biến xây dựng của thiết bị GCE AVD.
Các khóa biến xây dựng có thể có được mô tả trong BUILD_VARS, ví dụ: build_id, build_target, nhánh, 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 được lỗi
public String getErrors ()
getInstanceUser
public String getInstanceUser ()
lấy Nhật ký
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.
getSkipBugreportBộ sưu tập
public boolean getSkipBugreportCollection ()
máy chủAndPort
public HostAndPort hostAndPort ()
tên cá thể
public String instanceName ()
public boolean isIpPreconfigured ()
phân tích cú phápGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích 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 : mô tả 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 |
phân tích cú phápGceInfoFromOxygenClientOutput
public static parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes,
int remoteAdbPort)
Phân tích cú pháp đầu ra dòng lệnh nhất định từ tệp nhị phân của máy khách Oxygen để lấy thông tin AVD được thuê.
Thông số |
---|
oxygenRes | CommandResult : CommandResult từ việc thực thi lệnh của 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 một chuỗi nhất định để lấy thông tin thiết bị GCE AVD.
Thông số |
---|
data | String : chuỗi JSON. |
descriptor | DeviceDescriptor : mô tả 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 |
setErrorType
public void setErrorType (ErrorIdentifier errorType)
Thông số |
---|
errorType | ErrorIdentifier |
setErrors
public void setErrors (String errors)
setInstanceUser
public void setInstanceUser (String instanceUser)
Thông số |
---|
instanceUser | String |
public void setIpPreconfigured (boolean isIpPreconfigured)
Thông số |
---|
isIpPreconfigured | boolean |
setSkipBugreportBộ sưu tập
public void setSkipBugreportCollection (boolean skipBugreportCollection)
Thông số |
---|
skipBugreportCollection | 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-12-01 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"
}]