HostOrchestratorUtil

public class HostOrchestratorUtil
extends Object

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


在遠端執行個體上透過主機自動化調度管理工具執行指令的工具。

摘要

公用建構函式

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

公用方法

CommandResult powerwashGce()

嘗試透過 Host Orchestrator 執行 GCE 執行個體的 Powerwash 作業。

File pullCvdHostLogs()

透過主機調度器提取 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 ()

透過主機管控器提取 CF 主機記錄。

傳回
File

restoreSnapshotGce

public CommandResult restoreSnapshotGce ()

嘗試透過 Host Orchestrator 還原 Cuttlefish 執行個體的快照。

傳回
CommandResult

snapshotGce

public CommandResult snapshotGce ()

嘗試透過 Host Orchestrator 取得 Cuttlefish 執行個體的快照。

傳回
CommandResult

stopGce

public CommandResult stopGce ()

嘗試透過 Host Orchestrator 停止 Cuttlefish 執行個體。

傳回
CommandResult