คลาสที่ซ้อนกัน |
---|
class | GceAvdInfo.LogFileEntry |
เขตข้อมูล
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 ()
ส่งคืนแฮชข้อมูลตัวแปรบิลด์ของอุปกรณ์ 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
getDeviceOffset
public Integer getDeviceOffset ()
รับข้อผิดพลาด
public String getErrors ()
รับอินสแตนซ์ผู้ใช้
public String getInstanceUser ()
รับบันทึก
public getLogs ()
ส่งคืนแผนที่จากเส้นทางบันทึกในเครื่องหรือระยะไกลเป็นประเภท
โฮสต์และพอร์ต
public HostAndPort hostAndPort ()
ชื่ออินสแตนซ์
public String instanceName ()
public boolean isIpPreconfigured ()
แยกวิเคราะห์ GceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
แยกวิเคราะห์ไฟล์ที่กำหนดเพื่อรับข้อมูลอุปกรณ์ GCE AVD
พารามิเตอร์ |
---|
f | File : ไฟล์ ERROR(/File) เพื่ออ่านเอาต์พุต JSON จากไดรเวอร์ GCE |
descriptor | DeviceDescriptor : คำอธิบายของอุปกรณ์ที่ต้องการข้อมูล |
remoteAdbPort | int : พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb |
แยกวิเคราะห์ GceInfoFromOxygenClientOutput
public static parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes,
int remoteAdbPort)
แยกเอาต์พุตบรรทัดคำสั่งที่กำหนดจากไบนารีของไคลเอนต์ Oxygen เพื่อรับข้อมูล AVD ที่เช่า
พารามิเตอร์ |
---|
oxygenRes | CommandResult : CommandResult จากการดำเนินการคำสั่งไคลเอนต์ Oxygen |
remoteAdbPort | int : พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb |
แยกวิเคราะห์ GceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
แยกวิเคราะห์สตริงที่กำหนดเพื่อรับข้อมูลอุปกรณ์ GCE AVD
พารามิเตอร์ |
---|
data | String : สตริง JSON |
descriptor | DeviceDescriptor : คำอธิบายของอุปกรณ์ที่ต้องการข้อมูล |
remoteAdbPort | int : พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb |
setDeviceOffset
public void setDeviceOffset (Integer deviceOffset)
พารามิเตอร์ |
---|
deviceOffset | Integer |
setErrorType
public void setErrorType (ErrorIdentifier errorType)
พารามิเตอร์ |
---|
errorType | ErrorIdentifier |
ตั้งค่าข้อผิดพลาด
public void setErrors (String errors)
พารามิเตอร์ |
---|
errors | String |
setInstanceUser
public void setInstanceUser (String instanceUser)
พารามิเตอร์ |
---|
instanceUser | String |
public void setIpPreconfigured (boolean isIpPreconfigured)
พารามิเตอร์ |
---|
isIpPreconfigured | boolean |
ตั้งสถานะ
public void setStatus (GceAvdInfo.GceStatus status)
พารามิเตอร์ |
---|
status | GceAvdInfo.GceStatus |
toString
public String toString ()
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-06-06 UTC
[]
[]