GceLHPTunnelMonitor

public class GceLHPTunnelMonitor
extends AbstractTunnelMonitor

java.lang.Object
java.lang.Thread
  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()

如果 GceLHPTunnelMonitor 仍处于活跃状态,则返回 True,否则返回 false。

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 ITestDeviceITestDevice,用于将远程 GCE AVD 与 TF 设备相关联。

buildInfo IBuildInfoITestDevice,用于将远程 GCE AVD 与 TF 设备相关联。

sessionId StringITestDevice,用于将远程 GCE AVD 与 TF 设备相关联。

deviceId StringITestDevice,用于将远程 GCE AVD 与 TF 设备相关联。

serverUrl StringITestDevice,用于将远程 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

run

public void run ()

shutdown

public void shutdown ()

终止隧道监控器