GceLHPTunnelMonitor
public
class
GceLHPTunnelMonitor
extends AbstractTunnelMonitor
java.lang.Object | ||
↳ | com.android.tradefed.device.cloud.AbstractTunnelMonitor | |
↳ | com.android.tradefed.device.cloud.GceLHPTunnelMonitor |
Thread Monitor for the Gce lab host proxy tunnel used for oxygenation.
Summary
Public constructors | |
---|---|
GceLHPTunnelMonitor(ITestDevice device, IBuildInfo buildInfo, String sessionId, String deviceId, String serverUrl, TestDeviceOptions deviceOptions)
Constructor |
Public methods | |
---|---|
void
|
closeConnection()
Close the adb connection from the monitor. |
void
|
isAdbRebootCalled(boolean isCalled)
Set True when an adb reboot is about to be called to make sure the monitor expect it. |
boolean
|
isTunnelAlive()
Returns True if the |
void
|
logSshTunnelLogs(ITestLogger logger)
Log all the interesting log files generated from the adb tunnel connected through LHP. |
void
|
run()
|
void
|
shutdown()
Terminate the tunnel monitor |
Public constructors
GceLHPTunnelMonitor
public GceLHPTunnelMonitor (ITestDevice device, IBuildInfo buildInfo, String sessionId, String deviceId, String serverUrl, TestDeviceOptions deviceOptions)
Constructor
Parameters | |
---|---|
device |
ITestDevice : ITestDevice the TF device to associate the remote GCE AVD with. |
buildInfo |
IBuildInfo : ITestDevice the TF device to associate the remote GCE AVD with. |
sessionId |
String : ITestDevice the TF device to associate the remote GCE AVD with. |
deviceId |
String : ITestDevice the TF device to associate the remote GCE AVD with. |
serverUrl |
String : ITestDevice the TF device to associate the remote GCE AVD with. |
deviceOptions |
TestDeviceOptions : HostAndPort of the remote GCE AVD. |
Public methods
closeConnection
public void closeConnection ()
Close the adb connection from the monitor.
isAdbRebootCalled
public void isAdbRebootCalled (boolean isCalled)
Set True when an adb reboot is about to be called to make sure the monitor expect it.
Parameters | |
---|---|
isCalled |
boolean |
isTunnelAlive
public boolean isTunnelAlive ()
Returns True if the GceLHPTunnelMonitor
is still alive, false otherwise.
Returns | |
---|---|
boolean |
logSshTunnelLogs
public void logSshTunnelLogs (ITestLogger logger)
Log all the interesting log files generated from the adb tunnel connected through LHP.
Parameters | |
---|---|
logger |
ITestLogger |
run
public void run ()
shutdown
public void shutdown ()
Terminate the tunnel monitor