AdbSshConnection
public
class
AdbSshConnection
extends AdbTcpConnection
| java.lang.Object | ||||
| ↳ | com.android.tradefed.device.connection.AbstractConnection | |||
| ↳ | com.android.tradefed.device.connection.DefaultConnection | |||
| ↳ | com.android.tradefed.device.connection.AdbTcpConnection | |||
| ↳ | com.android.tradefed.device.connection.AdbSshConnection | |||
การเชื่อมต่อ Adb ผ่าน SSH Bridge
สรุป
เครื่องมือสร้างสาธารณะ | |
|---|---|
AdbSshConnection(DefaultConnection.ConnectionBuilder builder)
|
|
เมธอดสาธารณะ | |
|---|---|
HostOrchestratorUtil
|
createHostOrchestratorUtil(GceAvdInfo gceAvdInfo)
Helper to create host orchestrator utility. |
DeviceInspectionResult
|
debugDeviceNotAvailable()
ตรวจสอบ VM ของโฮสต์และดึงรายละเอียดเพิ่มเติมใน DeviceInspectionResult |
CommandResult
|
deleteSnapshotGce(String user, String snapshotId)
พยายามลบสแนปชอตของอินสแตนซ์ Cuttlefish |
GceAvdInfo
|
getAvdInfo()
แสดงผล |
CuttlefishControl
|
getCuttlefishControl()
|
AbstractTunnelMonitor
|
getGceTunnelMonitor()
แสดงผล |
String
|
getHOBaseURL()
Helper เพื่อส่งคืน Base URL ของตัวจัดระเบียบโฮสต์ |
void
|
getSshBugreport()
บันทึกรายงานข้อบกพร่องจากระยะไกลโดยใช้ SSH ไปยังอุปกรณ์โดยตรง |
List<File>
|
getTombstones()
Cuttlefish มีฟีเจอร์พิเศษที่นำเครื่องหมายหลุมศพไปยังโฮสต์ระยะไกลเพื่อให้เรา รับเครื่องหมายหลุมศพได้โดยตรง |
void
|
initializeConnection()
เริ่มการเชื่อมต่อของอุปกรณ์ |
void
|
notifyAdbRebootCalled()
แจ้งเตือนเมื่อมีการเรียกใช้ doAdbReboot |
CommandResult
|
powerwash()
พยายาม Powerwash อินสแตนซ์ GCE |
CommandResult
|
powerwashGce(String user, Integer offset)
พยายาม Powerwash อินสแตนซ์ GCE |
void
|
reconnect(String serial)
เชื่อมต่อกับอุปกรณ์อีกครั้ง |
void
|
reconnectForRecovery(String serial)
เชื่อมต่ออุปกรณ์อีกครั้งเพื่อใช้การกู้คืน |
CommandResult
|
restoreSnapshotGce(String user, Integer offset, String snapshotId)
พยายามกู้คืนสแนปชอตของอินสแตนซ์ Cuttlefish |
CommandResult
|
snapshotGce(String user, Integer offset, String snapshotId)
พยายามสร้างสแนปชอตของอินสแตนซ์ Cuttlefish |
void
|
tearDownConnection()
ล้างข้อมูลการเชื่อมต่อ |
วิธีการที่ได้รับการป้องกัน | |
|---|---|
long
|
getCurrentTime()
แสดงผลเวลาปัจจุบันของระบบ |
void
|
launchGce(IBuildInfo buildInfo, MultiMap<String, String> attributes)
เปิดตัวอุปกรณ์ GCE จริงตามข้อมูลบิลด์ |
void
|
waitForTunnelOnline(long waitTime)
ตรวจสอบว่าการตรวจสอบอุโมงค์ทำงานอยู่หรือไม่ |
เครื่องมือสร้างสาธารณะ
AdbSshConnection
public AdbSshConnection (DefaultConnection.ConnectionBuilder builder)
| พารามิเตอร์ | |
|---|---|
builder |
DefaultConnection.ConnectionBuilder |
เมธอดสาธารณะ
createHostOrchestratorUtil
public HostOrchestratorUtil createHostOrchestratorUtil (GceAvdInfo gceAvdInfo)
Helper to create host orchestrator utility.
| พารามิเตอร์ | |
|---|---|
gceAvdInfo |
GceAvdInfo |
| การคืนสินค้า | |
|---|---|
HostOrchestratorUtil |
|
debugDeviceNotAvailable
public DeviceInspectionResult debugDeviceNotAvailable ()
ตรวจสอบ VM ของโฮสต์และดึงรายละเอียดเพิ่มเติมใน DeviceInspectionResult
| การคืนสินค้า | |
|---|---|
DeviceInspectionResult |
DeviceInspectionResult |
deleteSnapshotGce
public CommandResult deleteSnapshotGce (String user, String snapshotId)
พยายามลบสแนปชอตของอินสแตนซ์ Cuttlefish
| พารามิเตอร์ | |
|---|---|
user |
String: โฮสต์ที่เรียกใช้ผู้ใช้ AVD null หากไม่เกี่ยวข้อง |
snapshotId |
String |
| การคืนสินค้า | |
|---|---|
CommandResult |
แสดง CommandResult ของความพยายามในการลบสแนปชอต |
| ส่ง | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|
getAvdInfo
public GceAvdInfo getAvdInfo ()
แสดงผล GceAvdInfo จาก VM ระยะไกลที่สร้างขึ้น คืนค่าโดยไม่คำนึงถึงสถานะ
เพื่อให้เราตรวจสอบข้อมูลได้
| การคืนสินค้า | |
|---|---|
GceAvdInfo |
|
getCuttlefishControl
public CuttlefishControl getCuttlefishControl ()
| การคืนสินค้า | |
|---|---|
CuttlefishControl |
|
getGceTunnelMonitor
public AbstractTunnelMonitor getGceTunnelMonitor ()
แสดงผล AbstractTunnelMonitor ของอุปกรณ์
| การคืนสินค้า | |
|---|---|
AbstractTunnelMonitor |
|
getHOBaseURL
public String getHOBaseURL ()
Helper เพื่อส่งคืน Base URL ของตัวจัดระเบียบโฮสต์
| การคืนสินค้า | |
|---|---|
String |
|
getSshBugreport
public void getSshBugreport ()
บันทึกรายงานข้อบกพร่องจากระยะไกลโดยใช้ SSH ไปยังอุปกรณ์โดยตรง
getTombstones
public List<File> getTombstones ()
Cuttlefish มีฟีเจอร์พิเศษที่นำเครื่องหมายหลุมศพไปยังโฮสต์ระยะไกลเพื่อให้เรา รับเครื่องหมายหลุมศพได้โดยตรง
| การคืนสินค้า | |
|---|---|
List<File> |
|
initializeConnection
public void initializeConnection ()
เริ่มการเชื่อมต่อของอุปกรณ์
| ส่ง | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
notifyAdbRebootCalled
public void notifyAdbRebootCalled ()
แจ้งเตือนเมื่อมีการเรียกใช้ doAdbReboot
ทำการ Powerwash
public CommandResult powerwash ()
พยายาม Powerwash อินสแตนซ์ GCE
| การคืนสินค้า | |
|---|---|
CommandResult |
แสดงผล CommandResult ของความพยายามในการทำ Powerwash |
| ส่ง | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|
powerwashGce
public CommandResult powerwashGce (String user, Integer offset)
พยายาม Powerwash อินสแตนซ์ GCE
| พารามิเตอร์ | |
|---|---|
user |
String: โฮสต์ที่เรียกใช้ผู้ใช้ AVD null หากไม่เกี่ยวข้อง |
offset |
Integer: ออฟเซ็ตหมายเลขอุปกรณ์ของ AVD ในโฮสต์ null หากไม่
เกี่ยวข้อง |
| การคืนสินค้า | |
|---|---|
CommandResult |
แสดงผล CommandResult ของความพยายามในการทำ Powerwash |
| ส่ง | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|
เชื่อมต่ออีกครั้ง
public void reconnect (String serial)
เชื่อมต่อกับอุปกรณ์อีกครั้ง
| พารามิเตอร์ | |
|---|---|
serial |
String: หมายเลขซีเรียลของอุปกรณ์ |
| ส่ง | |
|---|---|
DeviceNotAvailableException |
|
reconnectForRecovery
public void reconnectForRecovery (String serial)
เชื่อมต่ออุปกรณ์อีกครั้งเพื่อใช้การกู้คืน
| พารามิเตอร์ | |
|---|---|
serial |
String: หมายเลขซีเรียลของอุปกรณ์ |
| ส่ง | |
|---|---|
DeviceNotAvailableException |
|
restoreSnapshotGce
public CommandResult restoreSnapshotGce (String user, Integer offset, String snapshotId)
พยายามกู้คืนสแนปชอตของอินสแตนซ์ Cuttlefish
| พารามิเตอร์ | |
|---|---|
user |
String: โฮสต์ที่เรียกใช้ผู้ใช้ AVD null หากไม่เกี่ยวข้อง |
offset |
Integer: ออฟเซ็ตหมายเลขอุปกรณ์ของ AVD ในโฮสต์ null หากไม่
เกี่ยวข้อง |
snapshotId |
String: รหัสสแนปชอต |
| การคืนสินค้า | |
|---|---|
CommandResult |
แสดงผล CommandResult ของความพยายามในการกู้คืนสแนปชอต |
| ส่ง | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|
snapshotGce
public CommandResult snapshotGce (String user, Integer offset, String snapshotId)
พยายามสร้างสแนปชอตของอินสแตนซ์ Cuttlefish
| พารามิเตอร์ | |
|---|---|
user |
String: โฮสต์ที่เรียกใช้ผู้ใช้ AVD null หากไม่เกี่ยวข้อง |
offset |
Integer: ออฟเซ็ตหมายเลขอุปกรณ์ของ AVD ในโฮสต์ null หากไม่
เกี่ยวข้อง |
snapshotId |
String |
| การคืนสินค้า | |
|---|---|
CommandResult |
ส่งคืน CommandResult ของความพยายามในการสร้างสแนปชอต |
| ส่ง | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|
tearDownConnection
public void tearDownConnection ()
ล้างข้อมูลการเชื่อมต่อ
วิธีการที่ได้รับการป้องกัน
getCurrentTime
protected long getCurrentTime ()
แสดงผลเวลาปัจจุบันของระบบ แสดงสำหรับการทดสอบ
| การคืนสินค้า | |
|---|---|
long |
|
launchGce
protected void launchGce (IBuildInfo buildInfo, MultiMap<String, String> attributes)
เปิดตัวอุปกรณ์ GCE จริงตามข้อมูลบิลด์
| พารามิเตอร์ | |
|---|---|
buildInfo |
IBuildInfo |
attributes |
MultiMap |
| ส่ง | |
|---|---|
TargetSetupError |
|
waitForTunnelOnline
protected void waitForTunnelOnline (long waitTime)
ตรวจสอบว่าการตรวจสอบอุโมงค์ทำงานอยู่หรือไม่
| พารามิเตอร์ | |
|---|---|
waitTime |
long |
| ส่ง | |
|---|---|
DeviceNotAvailableException |
|