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

عائدات

getErrorType

public ErrorIdentifier getErrorType ()

عائدات
ErrorIdentifier

getErrors

public String getErrors ()

عائدات
String

احصل على الحالة

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 الخاص بالجهاز إذا تم العثور عليه، أو فارغ إذا حدث خطأ.

رميات
TargetSetupError

parseGceInfoFromString

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

قم بتحليل سلسلة معينة للحصول على معلومات جهاز GCE AVD.

حدود
data String : سلسلة JSON.

descriptor DeviceDescriptor : واصف الجهاز الذي يحتاج إلى المعلومات.

remoteAdbPort int : المنفذ البعيد الذي يجب استخدامه لاتصال adb

عائدات
GceAvdInfo GceAvdInfo الخاص بالجهاز إذا تم العثور عليه، أو فارغ إذا حدث خطأ.

رميات
TargetSetupError

تعيين الحالة

public void setStatus (GceAvdInfo.GceStatus status)

حدود
status GceAvdInfo.GceStatus

إلى سلسلة

public String toString ()

عائدات
String