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 ホストログを pull する。

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 ホストログを pull する。

戻り値
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