GceAvdInfo

public class GceAvdInfo
extends Object

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


特定の GCE AVD インスタンスに関連するデータを保持する構造。

概要

ネストされたクラス

class GceAvdInfo.LogFileEntry

 

フィールド

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 デバイスのビルド変数情報ハッシュを返します。

Integer getDeviceOffset()
ErrorIdentifier getErrorType()
String getErrors()
String getInstanceUser()
getLogs()

ローカルまたはリモートのログパスからタイプへのマップを返します。

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

指定されたファイルを解析して、GCE AVD デバイス情報を取得します。

static parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, int remoteAdbPort)

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 setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
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

パブリック メソッド

getBuildVar

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、ememulator_build_id、ememulator_build_target、ememulator_branch など)。

戻り値

getDeviceOffset

public Integer getDeviceOffset ()

戻り値
Integer

getErrorType

public ErrorIdentifier getErrorType ()

戻り値
ErrorIdentifier

getError

public String getErrors ()

戻り値
String

getInstanceUser

public String getInstanceUser ()

戻り値
String

getLogs

public  getLogs ()

ローカルまたはリモートのログパスからタイプへのマップを返します。

戻り値

getOxygenationDeviceId

public String getOxygenationDeviceId ()

戻り値
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

戻り値
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

戻り値
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

戻り値
HostAndPort

インスタンス名

public String instanceName ()

戻り値
String

isIp 事前構成済み

public boolean isIpPreconfigured ()

戻り値
boolean

isOxygenationDevice

public boolean isOxygenationDevice ()

戻り値
boolean

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

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Oxygen クライアント バイナリからの特定のコマンドライン出力を解析し、リースされた AVD 情報を取得します。

パラメータ
oxygenRes CommandResult: Oxygen クライアント コマンド実行からの CommandResult

remoteAdbPort int: adb 接続に使用するリモートポート

戻り値
ERROR(/List) 台のデバイスをリースしました。デバイスのリースに失敗した場合は、TargetSetupError をスローします。

例外
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

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

setIpPrestructured

public void setIpPreconfigured (boolean isIpPreconfigured)

パラメータ
isIpPreconfigured boolean

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