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 。 |
removeCvdHostLogs
public File pullCvdHostLogs ()
透過 Host Orchestrator 提取 CF 主機記錄。
傳回 | |
---|---|
File |
還原快照 Gce
public CommandResult restoreSnapshotGce ()
嘗試透過 Host Orchestrator 還原 Cuttlefish 執行個體的快照。
傳回 | |
---|---|
CommandResult |
快照 Gce
public CommandResult snapshotGce ()
嘗試透過 Host Orchestrator 建立 Cuttlefish 執行個體。
傳回 | |
---|---|
CommandResult |