HostOrkestratorUtil

public class HostOrchestratorUtil
extends Object

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


Utilitas untuk menjalankan perintah melalui Host Orchestrator pada 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()

Berupaya memulihkan snapshot instance Cuttlefish melalui Host Orchestrator.

CommandResult snapshotGce()

Mencoba mengambil snapshot instance Cuttlefish melalui Host Orchestrator.

CommandResult stopGce()

Mencoba menghentikan instance Cuttlefish melalui Host Orchestrator.

Konstruktor publik

HostOrkestratorUtil

public HostOrchestratorUtil (ITestDevice device, 
                GceAvdInfo gceAvd)

Parameter
device ITestDevice

gceAvd GceAvdInfo

HostOrkestratorUtil

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

memulihkanSnapshotGce

public CommandResult restoreSnapshotGce ()

Berupaya memulihkan snapshot instance Cuttlefish melalui Host Orchestrator.

Hasil
CommandResult

snapshotGce

public CommandResult snapshotGce ()

Mencoba mengambil snapshot instance Cuttlefish melalui Host Orchestrator.

Hasil
CommandResult

stopGce

public CommandResult stopGce ()

Mencoba menghentikan instance Cuttlefish melalui Host Orchestrator.

Hasil
CommandResult