HostOrchestratorUtil
public
class
HostOrchestratorUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.cloud.HostOrchestratorUtil |
Utilitas untuk menjalankan perintah melalui Host Orchestrator di instance jarak jauh.
Ringkasan
Konstruktor publik | |
|---|---|
HostOrchestratorUtil(ITestDevice device, GceAvdInfo gceAvd)
|
|
HostOrchestratorUtil(ITestDevice device, GceAvdInfo gceAvd, OxygenClient oxygenClient)
|
|
Metode publik | |
|---|---|
CommandResult
|
powerwashGce()
Mencoba melakukan powerwash pada instance GCE melalui Host Orchestrator. |
File
|
pullCvdHostLogs()
Mengambil log host CF melalui Host Orchestrator. |
CommandResult
|
restoreSnapshotGce()
Mencoba memulihkan snapshot instance Cuttlefish melalui Host Orchestrator. |
CommandResult
|
snapshotGce()
Mencoba membuat snapshot instance Cuttlefish melalui Host Orchestrator. |
CommandResult
|
stopGce()
Mencoba menghentikan instance Cuttlefish melalui Host Orchestrator. |
Konstruktor publik
HostOrchestratorUtil
public HostOrchestratorUtil (ITestDevice device, GceAvdInfo gceAvd)
| Parameter | |
|---|---|
device |
ITestDevice |
gceAvd |
GceAvdInfo |
HostOrchestratorUtil
public HostOrchestratorUtil (ITestDevice device, GceAvdInfo gceAvd, OxygenClient oxygenClient)
| Parameter | |
|---|---|
device |
ITestDevice |
gceAvd |
GceAvdInfo |
oxygenClient |
OxygenClient |
Metode publik
powerwashGce
public CommandResult powerwashGce ()
Mencoba melakukan powerwash pada instance GCE melalui Host Orchestrator.
| Hasil | |
|---|---|
CommandResult |
CommandResult yang berisi status dan log. |
pullCvdHostLogs
public File pullCvdHostLogs ()
Mengambil log host CF melalui Host Orchestrator.
| Hasil | |
|---|---|
File |
|
restoreSnapshotGce
public CommandResult restoreSnapshotGce ()
Mencoba memulihkan snapshot instance Cuttlefish melalui Host Orchestrator.
| Hasil | |
|---|---|
CommandResult |
|
snapshotGce
public CommandResult snapshotGce ()
Mencoba membuat snapshot instance Cuttlefish melalui Host Orchestrator.
| Hasil | |
|---|---|
CommandResult |
|
stopGce
public CommandResult stopGce ()
Mencoba menghentikan instance Cuttlefish melalui Host Orchestrator.
| Hasil | |
|---|---|
CommandResult |
|