HostOrchestratorUtil
public
class
HostOrchestratorUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.HostOrchestratorUtil |
Utility to execute commands via Host Orchestrator on remote instances.
Summary
Public constructors | |
---|---|
HostOrchestratorUtil(ITestDevice device, GceAvdInfo gceAvd)
|
|
HostOrchestratorUtil(ITestDevice device, GceAvdInfo gceAvd, OxygenClient oxygenClient)
|
Public methods | |
---|---|
CommandResult
|
powerwashGce()
Attempt to powerwash a GCE instance via Host Orchestrator. |
File
|
pullCvdHostLogs()
Pull CF host logs via Host Orchestrator. |
CommandResult
|
restoreSnapshotGce()
Attempt to restore snapshot of a Cuttlefish instance via Host Orchestrator. |
CommandResult
|
snapshotGce()
Attempt to snapshot a Cuttlefish instance via Host Orchestrator. |
CommandResult
|
stopGce()
Attempt to stop a Cuttlefish instance via Host Orchestrator. |
Public constructors
HostOrchestratorUtil
public HostOrchestratorUtil (ITestDevice device, GceAvdInfo gceAvd)
Parameters | |
---|---|
device |
ITestDevice |
gceAvd |
GceAvdInfo |
HostOrchestratorUtil
public HostOrchestratorUtil (ITestDevice device, GceAvdInfo gceAvd, OxygenClient oxygenClient)
Parameters | |
---|---|
device |
ITestDevice |
gceAvd |
GceAvdInfo |
oxygenClient |
OxygenClient |
Public methods
powerwashGce
public CommandResult powerwashGce ()
Attempt to powerwash a GCE instance via Host Orchestrator.
Returns | |
---|---|
CommandResult |
A CommandResult containing the status and logs. |
pullCvdHostLogs
public File pullCvdHostLogs ()
Pull CF host logs via Host Orchestrator.
Returns | |
---|---|
File |
restoreSnapshotGce
public CommandResult restoreSnapshotGce ()
Attempt to restore snapshot of a Cuttlefish instance via Host Orchestrator.
Returns | |
---|---|
CommandResult |
snapshotGce
public CommandResult snapshotGce ()
Attempt to snapshot a Cuttlefish instance via Host Orchestrator.
Returns | |
---|---|
CommandResult |
stopGce
public CommandResult stopGce ()
Attempt to stop a Cuttlefish instance via Host Orchestrator.
Returns | |
---|---|
CommandResult |