HostOrchestratorUtil

public class HostOrchestratorUtil
extends Object

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


用于通过 Host Orchestrator 在远程实例上执行命令的实用程序。

摘要

公共构造函数

HostOrchestratorUtil(ITestDevice device, GceAvdInfo gceAvd)
HostOrchestratorUtil(ITestDevice device, GceAvdInfo gceAvd, OxygenClient oxygenClient)

公共方法

CommandResult powerwashGce()

尝试通过主机编排器对 GCE 实例执行电源重置。

File pullCvdHostLogs()

通过主机编排器拉取 CF 主机日志。

CommandResult restoreSnapshotGce()

尝试通过主机编排器恢复 Cuttlefish 实例的快照。

CommandResult snapshotGce()

尝试通过主机编排器对 Cuttlefish 实例进行快照。

CommandResult stopGce()

尝试通过主机编排器停止 Cuttlefish 实例。

公共构造函数

HostOrchestratorUtil

public HostOrchestratorUtil (ITestDevice device, 
                GceAvdInfo gceAvd)

参数
device ITestDevice

gceAvd GceAvdInfo

HostOrchestratorUtil

public HostOrchestratorUtil (ITestDevice device, 
                GceAvdInfo gceAvd, 
                OxygenClient oxygenClient)

参数
device ITestDevice

gceAvd GceAvdInfo

oxygenClient OxygenClient

公共方法

powerwashGce

public CommandResult powerwashGce ()

尝试通过主机编排器对 GCE 实例执行电源重置。

返回
CommandResult 包含状态和日志的 CommandResult

pullCvdHostLogs

public File pullCvdHostLogs ()

通过主机编排器拉取 CF 主机日志。

返回
File

restoreSnapshotGce

public CommandResult restoreSnapshotGce ()

尝试通过主机编排器恢复 Cuttlefish 实例的快照。

返回
CommandResult

snapshotGce

public CommandResult snapshotGce ()

尝试通过主机编排器对 Cuttlefish 实例进行快照。

返回
CommandResult

stopGce

public CommandResult stopGce ()

尝试通过主机编排器停止 Cuttlefish 实例。

返回
CommandResult