Klient Oxygen

public class OxygenClient
extends Object

Obiekt Java.lang.Object
com.android.tradefed.device.cloud.OxygenClient


Klasa zarządzająca wykorzystaniem pliku binarnego klienta Oxygen do dzierżawy lub zwalniania urządzenia Oxygen.

Streszczenie

Pola

public static final sGceDeviceParamsToOxygenMap

Konstruktorzy publiczni

OxygenClient (File clientBinary, IRunUtil runUtil)
OxygenClient (File clientBinary)

Konstruktor klasy OxygenClient.

Metody publiczne

void closeLHPConnection (Process p)

Zamknąć połączenie z urządzeniem do zdalnego natleniania z danym Process .

Process createTunnelViaLHP ( OxygenClient.LHPTunnelMode mode)

Utwórz tunel adb lub ssh do podanej nazwy instancji i przypisz punkt końcowy do urządzenia poprzez LHP w oparciu o podany tryb tunelu.

String getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions)

Zwraca wartość argumentu „override_fetch_cvd_path” w danej opcji TestDeviceOptions.

CommandResult leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes)

Spróbuj wydzierżawić urządzenie, wywołując plik binarny klienta Oxygen.

CommandResult leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes)

Spróbuj wydzierżawić wiele urządzeń, wywołując plik binarny klienta Oxygen.

Boolean noWaitForBootSpecified ( TestDeviceOptions deviceOptions)

Sprawdź, czy w żądaniu dzierżawy tlenu określono opcję no_wait_for_boot

boolean release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)

Próba zwolnienia urządzenia przy użyciu pliku binarnego klienta Oxygen.

Pola

sGceDeviceParamsToOxygenMap

public static final  sGceDeviceParamsToOxygenMap

Konstruktorzy publiczni

Klient Oxygen

public OxygenClient (File clientBinary, 
                IRunUtil runUtil)

Parametry
clientBinary File

runUtil IRunUtil

Klient Oxygen

public OxygenClient (File clientBinary)

Konstruktor klasy OxygenClient.

Parametry
clientBinary File : wykonywalny plik binarny klienta Oxygen.

Metody publiczne

zamknijLHPPołączenie

public void closeLHPConnection (Process p)

Zamknąć połączenie z urządzeniem do zdalnego natleniania z danym Process .

Parametry
p Process

utwórzTunnelViaLHP

public Process createTunnelViaLHP (OxygenClient.LHPTunnelMode mode)

Utwórz tunel adb lub ssh do podanej nazwy instancji i przypisz punkt końcowy do urządzenia poprzez LHP w oparciu o podany tryb tunelu.

Parametry
mode OxygenClient.LHPTunnelMode

Zwroty
Process Process adb przez tunel LHP.

getOverrideFetchCvdPath

public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)

Zwraca wartość argumentu „override_fetch_cvd_path” w danej opcji TestDeviceOptions.

Parametry
deviceOptions TestDeviceOptions : TestDeviceOptions

Zwroty
String wartość „override_fetch_cvd_path” lub null, jeśli nie jest obecna

urządzenie leasingowe

public CommandResult leaseDevice (IBuildInfo b, 
                TestDeviceOptions deviceOptions, 
                MultiMap<String, String> attributes)

Spróbuj wydzierżawić urządzenie, wywołując plik binarny klienta Oxygen.

Parametry
b IBuildInfo : IBuildInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

attributes MultiMap : atrybuty powiązane z bieżącym wywołaniem

Zwroty
CommandResult CommandResult , który zwrócił plik binarny tlenu.

leasingWielu Urządzeń

public CommandResult leaseMultipleDevices ( buildInfos, 
                TestDeviceOptions deviceOptions, 
                MultiMap<String, String> attributes)

Spróbuj wydzierżawić wiele urządzeń, wywołując plik binarny klienta Oxygen.

Parametry
buildInfos : ERROR(/List ) ERROR(/List )

deviceOptions TestDeviceOptions : TestDeviceOptions

attributes MultiMap : atrybuty powiązane z bieżącym wywołaniem

Zwroty
CommandResult CommandResult , który zwrócił plik binarny tlenu.

noWaitForBootSpecified

public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)

Sprawdź, czy w żądaniu dzierżawy tlenu określono opcję no_wait_for_boot

Parametry
deviceOptions TestDeviceOptions : TestDeviceOptions

Zwroty
Boolean true, jeśli określono no_wait_for_boot

uwolnienie

public boolean release (GceAvdInfo gceAvdInfo, 
                TestDeviceOptions deviceOptions)

Próba zwolnienia urządzenia przy użyciu pliku binarnego klienta Oxygen.

Parametry
gceAvdInfo GceAvdInfo : GceAvdInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

Zwroty
boolean wartość logiczna wskazująca, czy wydanie urządzenia zakończyło się pomyślnie.