OxygenClient
public class OxygenClient
extends Object
java.lang.Object | |
com.android.tradefed.device.cloud.OxygenClient |
คลาสที่จัดการการใช้ไบนารีของไคลเอ็นต์ Oxygen เพื่อเช่าหรือปล่อยอุปกรณ์ Oxygen
สรุป
เขตข้อมูล | |
---|---|
public static final | sGceDeviceParamsToOxygenMap
|
ผู้รับเหมาก่อสร้างสาธารณะ | |
---|---|
OxygenClient (File clientBinary, IRunUtil runUtil) | |
OxygenClient (File clientBinary) ตัวสร้างคลาส OxygenClient |
วิธีการสาธารณะ | |
---|---|
void | closeLHPConnection (Process p) ปิดการเชื่อมต่อกับอุปกรณ์เติมออกซิเจนระยะไกลด้วย |
Process | createTunnelViaLHP ( OxygenClient.LHPTunnelMode mode) สร้างอุโมงค์ adb หรือ ssh ให้กับชื่ออินสแตนซ์ที่กำหนด และกำหนดตำแหน่งข้อมูลให้กับอุปกรณ์ผ่าน LHP ตามโหมดทันเนลที่กำหนด |
String | getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions) ส่งกลับค่าของอาร์กิวเมนต์ 'override_fetch_cvd_path' ใน TestDeviceOptions ที่กำหนด |
CommandResult | leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) พยายามเช่าอุปกรณ์โดยเรียกไบนารีของไคลเอ็นต์ Oxygen |
CommandResult | leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) พยายามเช่าอุปกรณ์หลายเครื่องโดยเรียกไบนารีของไคลเอ็นต์ Oxygen |
Boolean | noWaitForBootSpecified ( TestDeviceOptions deviceOptions) ตรวจสอบว่าระบุ no_wait_for_boot ในคำขอเช่า Oxygen หรือไม่ |
boolean | release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions) พยายามปล่อยอุปกรณ์โดยใช้ไบนารีของไคลเอ็นต์ Oxygen |
เขตข้อมูล
sGceDeviceParamsToOxygenMap
public static finalsGceDeviceParamsToOxygenMap
ผู้รับเหมาก่อสร้างสาธารณะ
OxygenClient
public OxygenClient (File clientBinary, IRunUtil runUtil)
พารามิเตอร์ | |
---|---|
clientBinary | File |
runUtil | IRunUtil |
OxygenClient
public OxygenClient (File clientBinary)
ตัวสร้างคลาส OxygenClient
พารามิเตอร์ | |
---|---|
clientBinary | File : ไฟล์ไบนารี่ของไคลเอ็นต์ Oxygen ที่ปฏิบัติการได้ |
วิธีการสาธารณะ
ปิด LHPConnection
public void closeLHPConnection (Process p)
ปิดการเชื่อมต่อกับอุปกรณ์เติมออกซิเจนระยะไกลด้วย Process
ที่กำหนด
พารามิเตอร์ | |
---|---|
p | Process |
createTunnelViaLHP
public Process createTunnelViaLHP (OxygenClient.LHPTunnelMode mode)
สร้างอุโมงค์ adb หรือ ssh ให้กับชื่ออินสแตนซ์ที่กำหนด และกำหนดตำแหน่งข้อมูลให้กับอุปกรณ์ผ่าน LHP ตามโหมดทันเนลที่กำหนด
พารามิเตอร์ | |
---|---|
mode | OxygenClient.LHPTunnelMode |
การส่งคืน | |
---|---|
Process | Process ของ adb บนอุโมงค์ LHP |
getOverrideFetchCvdPath
public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)
ส่งกลับค่าของอาร์กิวเมนต์ 'override_fetch_cvd_path' ใน TestDeviceOptions ที่กำหนด
พารามิเตอร์ | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
การส่งคืน | |
---|---|
String | ค่าของ 'override_fetch_cvd_path' หรือ null หากไม่มีอยู่ |
เช่าอุปกรณ์
public CommandResult leaseDevice (IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
พยายามเช่าอุปกรณ์โดยเรียกไบนารีของไคลเอ็นต์ Oxygen
พารามิเตอร์ | |
---|---|
b | IBuildInfo : IBuildInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : คุณลักษณะที่เกี่ยวข้องกับการร้องขอปัจจุบัน |
การส่งคืน | |
---|---|
CommandResult | CommandResult ที่ Oxygen binary ส่งคืน |
เช่าอุปกรณ์หลายเครื่อง
public CommandResult leaseMultipleDevices (buildInfos, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
พยายามเช่าอุปกรณ์หลายเครื่องโดยเรียกไบนารีของไคลเอ็นต์ Oxygen
พารามิเตอร์ | |
---|---|
buildInfos | ERROR(/List ) ERROR(/List ) |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : คุณลักษณะที่เกี่ยวข้องกับการร้องขอปัจจุบัน |
การส่งคืน | |
---|---|
CommandResult | CommandResult ที่ Oxygen binary ส่งคืน |
noWaitForBootระบุ
public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)
ตรวจสอบว่าระบุ no_wait_for_boot ในคำขอเช่า Oxygen หรือไม่
พารามิเตอร์ | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
การส่งคืน | |
---|---|
Boolean | เป็นจริงหากระบุ no_wait_for_boot |
ปล่อย
public boolean release (GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)
พยายามปล่อยอุปกรณ์โดยใช้ไบนารีของไคลเอ็นต์ Oxygen
พารามิเตอร์ | |
---|---|
gceAvdInfo | GceAvdInfo : GceAvdInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
การส่งคืน | |
---|---|
boolean | บูลีนซึ่งระบุว่าการเปิดตัวอุปกรณ์สำเร็จหรือไม่ |