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

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: GCE ड्राइवर से JSON आउटपुट पढ़ने के लिए ERROR(/File) फ़ाइल.

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