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

Kolom

public static final String URL_HOST_KERNEL_LOG

public static final String URL_HO_LOG

Konstruktor publik

HostOrchestratorUtil(boolean useOxygenation, boolean useCvdOxygen, File sshPrivateKeyPath, String instanceUser, GceAvdInfo gceAvd, File avdDriverBinary)
HostOrchestratorUtil(boolean useOxygenation, boolean useCvdOxygen, File sshPrivateKeyPath, String instanceUser, GceAvdInfo gceAvd, OxygenClient oxygenClient)

Metode publik

void collectLogByCommand(ITestLogger testLogger, String logName, String url)

Menjalankan perintah melalui Host Orchestrator dan mencatat outputnya

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.

Kolom

URL_HOST_KERNEL_LOG

public static final String URL_HOST_KERNEL_LOG

URL_HO_LOG

public static final String URL_HO_LOG

Konstruktor publik

HostOrkestratorUtil

public HostOrchestratorUtil (boolean useOxygenation, 
                boolean useCvdOxygen, 
                File sshPrivateKeyPath, 
                String instanceUser, 
                GceAvdInfo gceAvd, 
                File avdDriverBinary)

Parameter
useOxygenation boolean

useCvdOxygen boolean

sshPrivateKeyPath File

instanceUser String

gceAvd GceAvdInfo

avdDriverBinary File

HostOrkestratorUtil

public HostOrchestratorUtil (boolean useOxygenation, 
                boolean useCvdOxygen, 
                File sshPrivateKeyPath, 
                String instanceUser, 
                GceAvdInfo gceAvd, 
                OxygenClient oxygenClient)

Parameter
useOxygenation boolean

useCvdOxygen boolean

sshPrivateKeyPath File

instanceUser String

gceAvd GceAvdInfo

oxygenClient OxygenClient

Metode publik

collectLogByCommand

public void collectLogByCommand (ITestLogger testLogger, 
                String logName, 
                String url)

Menjalankan perintah melalui Host Orchestrator dan mencatat outputnya

Parameter
testLogger ITestLogger: ITestLogger tempat mencatat file.

logName String: nama log yang akan digunakan saat melaporkan ke ITestLogger

url String: Host Orchestrator API yang akan dijalankan.

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