GceAvd정보

public class GceAvdInfo
extends Object

java.lang.Object
com.android.tradefed.device.cloud.GceAvdInfo


특정 GCE AVD 인스턴스에 대한 관련 데이터를 보관하는 구조입니다.

요약

중첩 클래스

enum GceAvdInfo.GceStatus

필드

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 기기의 빌드 변수 정보 해시를 반환합니다.

ErrorIdentifier getErrorType ()
String getErrors ()
GceAvdInfo.GceStatus getStatus ()
HostAndPort hostAndPort ()
String instanceName ()
static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)

주어진 파일을 구문 분석하여 GCE AVD 장치 정보를 얻습니다.

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

주어진 문자열을 구문 분석하여 GCE AVD 장치 정보를 얻습니다.

void setStatus ( GceAvdInfo.GceStatus status)
String toString ()

필드

BUILD_VARS

public static final  BUILD_VARS

공개 생성자

GceAvd정보

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

매개변수
instanceName String

hostAndPort HostAndPort

GceAvd정보

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).

보고

getErrorType

public ErrorIdentifier getErrorType ()

보고
ErrorIdentifier

getErrors

public String getErrors ()

보고
String

getStatus

public GceAvdInfo.GceStatus getStatus ()

보고
GceAvdInfo.GceStatus

호스트 및 포트

public HostAndPort hostAndPort ()

보고
HostAndPort

인스턴스 이름

public String instanceName ()

보고
String

구문 분석GceInfoFromFile

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

구문 분석GceInfoFromString

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

주어진 문자열을 구문 분석하여 GCE AVD 장치 정보를 얻습니다.

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

descriptor DeviceDescriptor : 정보가 필요한 장치의 설명자입니다.

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

보고
GceAvdInfo 발견된 경우 장치의 GceAvdInfo 이고 오류인 경우 null입니다.

던지기
TargetSetupError

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

매개변수
status GceAvdInfo.GceStatus

toString

public String toString ()

보고
String