GceAvdInfo

public class GceAvdInfo
extends Object

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


מבנה שמכיל נתונים רלוונטיים למופע נתון של GCE AVD.

סיכום

כיתות מוטמעות

class GceAvdInfo.LogFileEntry

 

שדות

public static final List<String> BUILD_VARS

‫constructors ציבוריים

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

‫methods ציבוריים

HashMap<String, String> getBuildVars()

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

Integer getDeviceOffset()
ErrorIdentifier getErrorType()
String getErrors()
String getInstanceUser()
List<GceAvdInfo.LogFileEntry> getLogs()

החזרת המפה מנתיבי יומן מקומיים או מרוחקים לסוגים.

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

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

static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, TestDeviceOptions deviceOptions)

ניתוח של פלט משורת פקודה נתונה מקובץ בינארי של לקוח 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 setOxygenationDeviceId(String deviceId)
void setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

שדות

BUILD_VARS

public static final List<String> BUILD_VARS

‫constructors ציבוריים

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

‫methods ציבוריים

getBuildVars

public HashMap<String, String> 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.

החזרות
HashMap<String, String>

getDeviceOffset

public Integer getDeviceOffset ()

החזרות
Integer

getErrorType

public ErrorIdentifier getErrorType ()

החזרות
ErrorIdentifier

getErrors

public String getErrors ()

החזרות
String

getInstanceUser

public String getInstanceUser ()

החזרות
String

getLogs

public List<GceAvdInfo.LogFileEntry> getLogs ()

החזרת המפה מנתיבי יומן מקומיים או מרוחקים לסוגים.

החזרות
List<GceAvdInfo.LogFileEntry>

getOxygenationDeviceId

public String getOxygenationDeviceId ()

החזרות
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

החזרות
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

החזרות
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

החזרות
HostAndPort

instanceName

public String instanceName ()

החזרות
String

isIpPreconfigured

public boolean isIpPreconfigured ()

החזרות
boolean

parseGceInfoFromFile

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

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

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

descriptor DeviceDescriptor: המאפיין של המכשיר שזקוק למידע.

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

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

הקפצת הודעות שגיאה (throw)
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                TestDeviceOptions deviceOptions)

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

פרמטרים
oxygenRes CommandResult: ה-CommandResult מהרצת פקודות בלקוח Oxygen.

deviceOptions TestDeviceOptions: TestDeviceOptions שמתאר את אפשרויות המכשיר

החזרות
List<GceAvdInfo> List מהמכשירים הושכרו בהצלחה. תופעל חריגה TargetSetupError אם לא תהיה אפשרות להשכיר מכשיר.

הקפצת הודעות שגיאה (throw)
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 אם יש שגיאה.

הקפצת הודעות שגיאה (throw)
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

setIpPreconfigured

public void setIpPreconfigured (boolean isIpPreconfigured)

פרמטרים
isIpPreconfigured boolean

setOxygenationDeviceId

public void setOxygenationDeviceId (String deviceId)

פרמטרים
deviceId String

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