AbstractTunnelMonitor

public abstract class AbstractTunnelMonitor
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.cloud.AbstractTunnelMonitor


Abstract tunnel monitor for GCE AVD.

Summary

Public constructors

AbstractTunnelMonitor(String name)

Public methods

void closeConnection()

Close all the connections from the monitor (adb tunnel).

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 tunnel is alive, false otherwise.

void logSshTunnelLogs(ITestLogger logger)

Log all the interesting log files generated from the ssh tunnel.

void shutdown()

Terminate the tunnel monitor

Public constructors

AbstractTunnelMonitor

public AbstractTunnelMonitor (String name)

Parameters
name String

Public methods

closeConnection

public void closeConnection ()

Close all the connections from the monitor (adb tunnel).

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 tunnel is alive, false otherwise.

Returns
boolean

logSshTunnelLogs

public void logSshTunnelLogs (ITestLogger logger)

Log all the interesting log files generated from the ssh tunnel.

Parameters
logger ITestLogger

shutdown

public void shutdown ()

Terminate the tunnel monitor