GceLHPTunnelMonitor
public
class
GceLHPTunnelMonitor
extends AbstractTunnelMonitor
| java.lang.Object | ||
| ↳ | com.android.tradefed.device.cloud.AbstractTunnelMonitor | |
| ↳ | com.android.tradefed.device.cloud.GceLHPTunnelMonitor | |
用于供氧的 Gce 实验室主机代理隧道的线程监视器。
摘要
公共构造函数 | |
|---|---|
GceLHPTunnelMonitor(ITestDevice device, IBuildInfo buildInfo, String sessionId, String deviceId, String serverUrl, TestDeviceOptions deviceOptions)
构造函数 |
|
公共方法 | |
|---|---|
void
|
closeConnection()
关闭监视器的 adb 连接。 |
void
|
isAdbRebootCalled(boolean isCalled)
当即将调用 adb 重新启动时,将其设置为 True,以确保监视器预期会发生这种情况。 |
boolean
|
isTunnelAlive()
如果 |
void
|
logSshTunnelLogs(ITestLogger logger)
记录通过 LHP 连接的 adb 隧道生成的所有有趣日志文件。 |
void
|
run()
|
void
|
shutdown()
终止隧道监控器 |
公共构造函数
GceLHPTunnelMonitor
public GceLHPTunnelMonitor (ITestDevice device, IBuildInfo buildInfo, String sessionId, String deviceId, String serverUrl, TestDeviceOptions deviceOptions)
构造函数
| 参数 | |
|---|---|
device |
ITestDevice:ITestDevice要与远程 GCE AVD 关联的 TF 设备。 |
buildInfo |
IBuildInfo:ITestDevice要与远程 GCE AVD 关联的 TF 设备。 |
sessionId |
String:ITestDevice要与远程 GCE AVD 关联的 TF 设备。 |
deviceId |
String:ITestDevice要与远程 GCE AVD 关联的 TF 设备。 |
serverUrl |
String:ITestDevice要与远程 GCE AVD 关联的 TF 设备。 |
deviceOptions |
TestDeviceOptions:远程 GCE AVD 的 HostAndPort。 |
公共方法
closeConnection
public void closeConnection ()
关闭与监视器的 adb 连接。
isAdbRebootCalled
public void isAdbRebootCalled (boolean isCalled)
当即将调用 adb 重新启动时,将其设置为 True,以确保监视器预期会发生这种情况。
| 参数 | |
|---|---|
isCalled |
boolean |
isTunnelAlive
public boolean isTunnelAlive ()
如果 GceLHPTunnelMonitor 仍处于活动状态,则返回 True;否则返回 False。
| 返回 | |
|---|---|
boolean |
|
logSshTunnelLogs
public void logSshTunnelLogs (ITestLogger logger)
记录通过 LHP 连接的 adb 隧道生成的所有感兴趣的日志文件。
| 参数 | |
|---|---|
logger |
ITestLogger |
得分
public void run ()
关机
public void shutdown ()
终止隧道监控器