산소클라이언트
public class OxygenClient
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.OxygenClient |
Oxygen 장치를 임대하거나 해제하기 위해 Oxygen 클라이언트 바이너리의 사용을 관리하는 클래스입니다.
요약
필드 | |
---|---|
public static final | sGceDeviceParamsToOxygenMap
|
공개 생성자 | |
---|---|
OxygenClient (File clientBinary, IRunUtil runUtil) | |
OxygenClient (File clientBinary) OxygenClient 클래스의 생성자입니다. |
공개 메소드 | |
---|---|
void | closeLHPConnection (Process p) 지정된 |
Process | createTunnelViaLHP ( OxygenClient.LHPTunnelMode mode) 주어진 인스턴스 이름에 대한 adb 또는 SSH 터널을 생성하고 주어진 터널 모드에 따라 LHP를 통해 장치에 엔드포인트를 할당합니다. |
String | getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions) 지정된 TestDeviceOptions의 'override_fetch_cvd_path' 인수 값을 반환합니다. |
CommandResult | leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Oxygen 클라이언트 바이너리를 호출하여 장치 임대를 시도합니다. |
CommandResult | leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Oxygen 클라이언트 바이너리를 호출하여 여러 장치 임대를 시도합니다. |
Boolean | noWaitForBootSpecified ( TestDeviceOptions deviceOptions) Oxygen 임대 요청에 no_wait_for_boot가 지정되어 있는지 확인하세요. |
boolean | release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions) Oxygen 클라이언트 바이너리를 사용하여 장치 해제를 시도합니다. |
필드
sGceDeviceParamsToOxygenMap
public static finalsGceDeviceParamsToOxygenMap
공개 생성자
산소클라이언트
public OxygenClient (File clientBinary, IRunUtil runUtil)
매개변수 | |
---|---|
clientBinary | File |
runUtil | IRunUtil |
산소클라이언트
public OxygenClient (File clientBinary)
OxygenClient 클래스의 생성자입니다.
매개변수 | |
---|---|
clientBinary | File : 실행 가능한 Oxygen 클라이언트 바이너리 파일입니다. |
공개 메소드
닫기LHP연결
public void closeLHPConnection (Process p)
지정된 Process
사용하여 원격 산소화 장치에 대한 연결을 닫습니다.
매개변수 | |
---|---|
p | Process |
createTunnelViaLHP
public Process createTunnelViaLHP (OxygenClient.LHPTunnelMode mode)
주어진 인스턴스 이름에 대한 adb 또는 SSH 터널을 생성하고 주어진 터널 모드에 따라 LHP를 통해 장치에 엔드포인트를 할당합니다.
매개변수 | |
---|---|
mode | OxygenClient.LHPTunnelMode |
보고 | |
---|---|
Process | LHP 터널을 통한 adb Process . |
getOverrideFetchCvdPath
public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)
지정된 TestDeviceOptions의 'override_fetch_cvd_path' 인수 값을 반환합니다.
매개변수 | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
보고 | |
---|---|
String | 'override_fetch_cvd_path' 값, 또는 존재하지 않는 경우 null |
임대장치
public CommandResult leaseDevice (IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Oxygen 클라이언트 바이너리를 호출하여 장치 임대를 시도합니다.
매개변수 | |
---|---|
b | IBuildInfo : IBuildInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : 현재 호출과 관련된 속성 |
보고 | |
---|---|
CommandResult | Oxygen 바이너리가 반환한 CommandResult 입니다. |
임대여러 장치
public CommandResult leaseMultipleDevices (buildInfos, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Oxygen 클라이언트 바이너리를 호출하여 여러 장치 임대를 시도합니다.
매개변수 | |
---|---|
buildInfos | ERROR(/List ) ERROR(/List ) |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : 현재 호출과 관련된 속성 |
보고 | |
---|---|
CommandResult | Oxygen 바이너리가 반환된 CommandResult 입니다. |
noWaitForBoot가 지정됨
public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)
Oxygen 임대 요청에 no_wait_for_boot가 지정되어 있는지 확인하세요.
매개변수 | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
보고 | |
---|---|
Boolean | no_wait_for_boot가 지정되면 true |
풀어 주다
public boolean release (GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)
Oxygen 클라이언트 바이너리를 사용하여 장치 해제를 시도합니다.
매개변수 | |
---|---|
gceAvdInfo | GceAvdInfo : GceAvdInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
보고 | |
---|---|
boolean | 장치 릴리스 성공 여부를 나타내는 부울입니다. |