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

החזר גיבוב של מידע משתנה של בניית מכשיר 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 ()

החזר גיבוב של מידע משתנה של בניית מכשיר 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_bran.

החזרות

getErrorType

public ErrorIdentifier getErrorType ()

החזרות
ErrorIdentifier

getErrors

public String getErrors ()

החזרות
String

getStatus

public GceAvdInfo.GceStatus getStatus ()

החזרות
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

החזרות
HostAndPort

שם מופע

public String instanceName ()

החזרות
String

parseGceInfoFromFile

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

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

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

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