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()

尝试通过 Host Orchestrator 对 GCE 实例执行 Powerwash。

File pullCvdHostLogs()

通过 Host Orchestrator 拉取 CF 主机日志。

CommandResult restoreSnapshotGce()

尝试通过 Host Orchestrator 恢复 Cuttlefish 实例的快照。

CommandResult snapshotGce()

尝试通过 Host Orchestrator 对 Cuttlefish 实例截取快照。

CommandResult stopGce()

尝试通过 Host Orchestrator 停止 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 ()

尝试通过 Host Orchestrator 对 GCE 实例执行 Powerwash 操作。

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

pullCvdHostLogs

public File pullCvdHostLogs ()

通过 Host Orchestrator 拉取 CF 主机日志。

返回
File

恢复快照

public CommandResult restoreSnapshotGce ()

尝试通过 Host Orchestrator 恢复 Cuttlefish 实例的快照。

返回
CommandResult

快照

public CommandResult snapshotGce ()

尝试通过 Host Orchestrator 对 Cuttlefish 实例截取快照。

返回
CommandResult

stopGce

public CommandResult stopGce ()

尝试通过 Host Orchestrator 停止 Cuttlefish 实例。

返回
CommandResult