GceAvdInfo

public class GceAvdInfo
extends Object

java.lang.オブジェクト
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 ()

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

boolean getSkipBugreportCollection ()
GceAvdInfo.GceStatus getStatus ()
HostAndPort hostAndPort ()
String instanceName ()
boolean isIpPreconfigured ()
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 skipBugreportCollection)
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。

戻り値

getDeviceOffset

public Integer getDeviceOffset ()

戻り値
Integer

getErrorType

public ErrorIdentifier getErrorType ()

戻り値
ErrorIdentifier

getErrors

public String getErrors ()

戻り値
String

getInstanceUser

public String getInstanceUser ()

戻り値
String

ログの取得

public  getLogs ()

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

戻り値

getSkipBugreportCollection

public boolean getSkipBugreportCollection ()

戻り値
boolean

ステータスの取得

public GceAvdInfo.GceStatus getStatus ()

戻り値
GceAvdInfo.GceStatus

ホストとポート

public HostAndPort hostAndPort ()

戻り値
HostAndPort

インスタンス名

public String instanceName ()

戻り値
String

isIp事前設定済み

public boolean isIpPreconfigured ()

戻り値
boolean

ファイルからの GceInfo を解析

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

parseGceInfoFromOxygenClient出力

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

setIp事前構成済み

public void setIpPreconfigured (boolean isIpPreconfigured)

パラメーター
isIpPreconfigured boolean

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipBugreportCollection)

パラメーター
skipBugreportCollection boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

パラメーター
status GceAvdInfo.GceStatus

toString

public String toString ()

戻り値
String