GceAvdInfo

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

החזרת גיבוב של פרטי המשתנה של build במכשיר 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

קונסטרוקטורים גלויים לכולם

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

החזרת גיבוב של פרטי המשתנה של build במכשיר GCE AVD.

מפתחות אפשריים של משתני build מתוארים ב-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

hostAndPort

public HostAndPort hostAndPort ()

החזרות
HostAndPort

instanceName

public String instanceName ()

החזרות
String

parseGceInfoFromFile

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

ניתוח קובץ נתון כדי לקבל את פרטי המכשיר של GCE AVD.

פרמטרים
f File: קובץ ERROR(/File) לקריאת פלט ה-JSON מ-GCE Driver.

descriptor DeviceDescriptor: התיאור של המכשיר שדרוש לו המידע.

remoteAdbPort int: היציאה המרוחקת שבה צריך להשתמש לחיבור adb

החזרות
GceAvdInfo ה-GceAvdInfo של המכשיר אם הוא נמצא, או null אם יש שגיאה.

זריקות
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

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

פרמטרים
status GceAvdInfo.GceStatus

toString

public String toString ()

החזרות
String