GceAvdInfo

public class GceAvdInfo
extends Object

java.lang.Object의 클래스
   ↳ com.android.tradefed.device.cloud.GceAvdInfo의


지정된 GCE AVD 인스턴스의 관련 데이터를 보유하는 구조입니다.

요약

중첩된 클래스

class GceAvdInfo.LogFileEntry

 

필드

public static final BUILD_VARS

공개 생성자

GceAvdInfo(String instanceName, HostAndPort hostAndPort)
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)

공개 메서드

getBuildVars()

GCE AVD 기기의 빌드 변수 정보 해시를 반환합니다.

Integer getDeviceOffset()
ErrorIdentifier getErrorType()
String getErrors()
String getInstanceUser()
getLogs()

로컬 또는 원격 로그 경로에서 유형으로 맵을 반환합니다.

String getOxygenationDeviceId()
boolean getSkipDeviceLogCollection()
GceAvdInfo.GceStatus getStatus()
HostAndPort hostAndPort()
String instanceName()
boolean isIpPreconfigured()
boolean isOxygenationDevice()
static GceAvdInfo parseGceInfoFromFile(File f, DeviceDescriptor descriptor, int remoteAdbPort)

지정된 파일을 파싱하여 GCE AVD 기기 정보를 가져옵니다.

static parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, int remoteAdbPort)

Oxygen 클라이언트 바이너리에서 주어진 명령줄 출력을 파싱하여 임대한 AVD 정보를 가져옵니다.

static GceAvdInfo parseGceInfoFromString(String data, DeviceDescriptor descriptor, int remoteAdbPort)

지정된 문자열을 파싱하여 GCE AVD 기기 정보를 가져옵니다.

void setDeviceOffset(Integer deviceOffset)
void setErrorType(ErrorIdentifier errorType)
void setErrors(String errors)
void setInstanceUser(String instanceUser)
void setIpPreconfigured(boolean isIpPreconfigured)
void setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

필드

BUILD_VARS

public static final  BUILD_VARS

공개 생성자

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

매개변수
instanceName String

hostAndPort HostAndPort

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort, 
                ErrorIdentifier errorType, 
                String errors, 
                GceAvdInfo.GceStatus status)

매개변수
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

공개 메서드

getBuildVars

public  getBuildVars ()

GCE AVD 기기의 빌드 변수 정보 해시를 반환합니다.

가능한 빌드 변수 키는 BUILD_VARS에 설명되어 있습니다(예: build_id, build_target, branch, kernel_build_id, kernel_build_target, kernel_branch, system_build_id, system_build_target, system_branch, emulator_build_id, emulator_build_target, emulator_branch).

반환 값

getDeviceOffset

public Integer getDeviceOffset ()

반환 값
Integer

getErrorType

public ErrorIdentifier getErrorType ()

반환 값
ErrorIdentifier

getErrors

public String getErrors ()

반환 값
String

getInstanceUser

public String getInstanceUser ()

반환 값
String

getLogs

public  getLogs ()

로컬 또는 원격 로그 경로에서 유형으로 맵을 반환합니다.

반환 값

getOxygenationDeviceId

public String getOxygenationDeviceId ()

반환 값
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

반환 값
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

반환 값
GceAvdInfo.GceStatus

호스트 및 포트

public HostAndPort hostAndPort ()

반환 값
HostAndPort

인스턴스 이름

public String instanceName ()

반환 값
String

isIpPre 구성

public boolean isIpPreconfigured ()

반환 값
boolean

isOxygenationDevice

public boolean isOxygenationDevice ()

반환 값
boolean

parseGceInfoFromFile 클래스의 정적 변수

public static GceAvdInfo parseGceInfoFromFile (File f, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

지정된 파일을 파싱하여 GCE AVD 기기 정보를 가져옵니다.

매개변수
f File: GCE 드라이버에서 JSON 출력을 읽을 ERROR(/File) 파일입니다.

descriptor DeviceDescriptor: 정보가 필요한 기기의 설명어입니다.

remoteAdbPort int: adb 연결에 사용해야 하는 원격 포트

반환 값
GceAvdInfo 기기가 발견되면 기기의 GceAvdInfo를, 오류가 발생하면 null입니다.

생성 값
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Oxygen 클라이언트 바이너리에서 주어진 명령줄 출력을 파싱하여 임대한 AVD 정보를 가져옵니다.

매개변수
oxygenRes CommandResult: Oxygen 클라이언트 명령어 실행의 CommandResult입니다.

remoteAdbPort int: adb 연결에 사용해야 하는 원격 포트

반환 값
ERROR(/List)대의 기기가 임대되었습니다. 기기를 임대하지 못하면 TargetSetupError이 발생합니다.

생성 값
TargetSetupError

parseGceInfoFromString

public static GceAvdInfo parseGceInfoFromString (String data, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

지정된 문자열을 파싱하여 GCE AVD 기기 정보를 가져옵니다.

매개변수
data String: JSON 문자열입니다.

descriptor DeviceDescriptor: 정보가 필요한 기기의 설명어입니다.

remoteAdbPort int: adb 연결에 사용해야 하는 원격 포트

반환 값
GceAvdInfo 기기가 발견되면 기기의 GceAvdInfo를, 오류가 발생하면 null입니다.

생성 값
TargetSetupError

setDeviceOffset

public void setDeviceOffset (Integer deviceOffset)

매개변수
deviceOffset Integer

setErrorType

public void setErrorType (ErrorIdentifier errorType)

매개변수
errorType ErrorIdentifier

setErrors

public void setErrors (String errors)

매개변수
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

매개변수
instanceUser String

setIpPre 구성

public void setIpPreconfigured (boolean isIpPreconfigured)

매개변수
isIpPreconfigured boolean

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipDeviceLogCollection)

매개변수
skipDeviceLogCollection boolean

setSkipDeviceLogCollection

public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)

매개변수
skipDeviceLogCollection boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

매개변수
status GceAvdInfo.GceStatus

toString

public String toString ()

반환 값
String