ホストオプション
public class HostOptions
extends Object
implements IHostOptions
java.lang.オブジェクト | |
↳ | com.android.tradefed.host.HostOptions |
ホスト オプション ホルダー クラス。このクラスは、ホスト全体のオプションを保存するために使用されます。
まとめ
パブリックコンストラクター | |
---|---|
HostOptions () |
パブリックメソッド | |
---|---|
Integer | getAvailablePermits ( IHostOptions.PermitLimitType type) 指定されたタイプの利用可能な許可の数を返します |
Long | getCacheSizeLimit () ローカル ファイル キャッシュの最大許容サイズ (バイト) を返します。 |
File | getClFlashstation () リモートの cl_flashstation スクリプト ファイルを返します。 |
Integer | getConcurrentDownloadLimit () 許可される同時ダウンロードの最大数を返します。 |
Integer | getConcurrentFlasherLimit () 許可する同時フラッシュの最大数を返します。 |
Integer | getConcurrentVirtualDeviceStartupLimit () 許可される仮想デバイスの同時起動の最大数を返します。 |
File | getDownloadCacheDir () ダウンロードされたアーティファクトの保存に使用されるパスを返します。 |
File | getFastbootTmpDir () fastboot が一時フォルダーとして使用するパスを返します。 |
int | getInUsePermits ( IHostOptions.PermitLimitType type) 指定されたタイプで使用されている許可の数を返します。 |
getKnownGceDeviceIpPool () 特定の IP に関連付けられた既知の gce-device。 | |
getKnownPreconfigureVirtualDevicePool () 既知の事前構成された仮想デバイス プール。 | |
getKnownRemoteDeviceIpPool () 特定の IP に関連付けられた既知のリモート デバイス。 | |
getKnownTcpDeviceIpPool () 特定の IP に関連付けられた既知の tcp デバイス。 | |
getLabels () ホストのラベルを取得します。 | |
String | getNetworkInterface () リモート テスト デバイスへの接続に使用されるネットワーク インターフェイスを返します。 |
getServiceAccountJsonKeyFiles () サービス アカウントの JSON キー ファイルのマップを返します。 | |
long | getTestPhaseTimeout () 指定されたテストフェーズレベルのタイムアウトを返します。 |
boolean | getUseZip64InPartialDownload () 部分ダウンロードで zip64 形式を使用する必要があるかどうかを確認します。 |
void | initConcurrentLocks () 同時ロックを初期化します |
boolean | isFastbootdEnable () fastbootd モードのサポートが有効かどうかを返します。 |
boolean | isFlashstationEnabled () flashstation でフラッシュを行う必要があるかどうかを返します。 |
boolean | isHostMetricReportingDisabled () ホスト メトリック レポートを無効にするかどうかを返します。 |
void | returnPermit ( IHostOptions.PermitLimitType type) 指定されたタイプの許可を返します |
boolean | shouldFlashWithFuseZip () ヒューズ マウントされたデバイス イメージ zip ファイルを使用してフラッシュを実行する必要があるかどうかを返します。 |
Boolean | shouldUseSsoClient () SingleSignOn クライアントを使用する必要があるかどうかを確認します。 |
void | takePermit ( IHostOptions.PermitLimitType type) 指定された種類の許可を取得します |
void | validateOptions () |
パブリックコンストラクター
ホストオプション
public HostOptions ()
パブリックメソッド
getAvailablePermits
public Integer getAvailablePermits (IHostOptions.PermitLimitType type)
指定されたタイプの利用可能な許可の数を返します
パラメーター | |
---|---|
type | IHostOptions.PermitLimitType |
戻り値 | |
---|---|
Integer |
getCacheSizeLimit
public Long getCacheSizeLimit ()
ローカル ファイル キャッシュの最大許容サイズ (バイト) を返します。
戻り値 | |
---|---|
Long |
getClフラッシュステーション
public File getClFlashstation ()
リモートの cl_flashstation スクリプト ファイルを返します。
戻り値 | |
---|---|
File |
getConcurrentDownloadLimit
public Integer getConcurrentDownloadLimit ()
許可される同時ダウンロードの最大数を返します。リモート ビルドをダウンロードするIBuildProvider
によって使用されます。
戻り値 | |
---|---|
Integer |
getConcurrentFlasherLimit
public Integer getConcurrentFlasherLimit ()
許可する同時フラッシュの最大数を返します。 DeviceFlashPreparer
によって使用されます。
戻り値 | |
---|---|
Integer | 同時点滅制限。 |
getConcurrentVirtualDeviceStartupLimit
public Integer getConcurrentVirtualDeviceStartupLimit ()
許可される仮想デバイスの同時起動の最大数を返します。仮想デバイスを起動するRemoteAndroidVirtualDevice
によって使用されます。
戻り値 | |
---|---|
Integer |
getDownloadCacheDir
public File getDownloadCacheDir ()
ダウンロードされたアーティファクトの保存に使用されるパスを返します。
戻り値 | |
---|---|
File |
getFastbootTmpDir
public File getFastbootTmpDir ()
fastboot が一時フォルダーとして使用するパスを返します。
戻り値 | |
---|---|
File |
getInUsePermits
public int getInUsePermits (IHostOptions.PermitLimitType type)
指定されたタイプで使用されている許可の数を返します。
パラメーター | |
---|---|
type | IHostOptions.PermitLimitType |
戻り値 | |
---|---|
int |
getKnownGceDeviceIpPool
publicgetKnownGceDeviceIpPool ()
特定の IP に関連付けられた既知の gce-device。
戻り値 | |
---|---|
getKnown事前構成仮想デバイスプール
publicgetKnownPreconfigureVirtualDevicePool ()
既知の事前構成された仮想デバイス プール。
戻り値 | |
---|---|
getKnownRemoteDeviceIpPool
publicgetKnownRemoteDeviceIpPool ()
特定の IP に関連付けられた既知のリモート デバイス。
戻り値 | |
---|---|
getKnownTcpDeviceIpPool
publicgetKnownTcpDeviceIpPool ()
特定の IP に関連付けられた既知の tcp デバイス。
戻り値 | |
---|---|
getLabels
publicgetLabels ()
ホストのラベルを取得します。
戻り値 | |
---|---|
getネットワークインターフェース
public String getNetworkInterface ()
リモート テスト デバイスへの接続に使用されるネットワーク インターフェイスを返します。
戻り値 | |
---|---|
String |
getServiceAccountJsonKeyFiles
publicgetServiceAccountJsonKeyFiles ()
サービス アカウントの JSON キー ファイルのマップを返します。
戻り値 | |
---|---|
getTestPhaseTimeout
public long getTestPhaseTimeout ()
指定されたテストフェーズレベルのタイムアウトを返します。デフォルトはタイムアウトなしの 0 です。
戻り値 | |
---|---|
long |
getUseZip64InPartialDownload
public boolean getUseZip64InPartialDownload ()
部分ダウンロードで zip64 形式を使用する必要があるかどうかを確認します。
戻り値 | |
---|---|
boolean |
initConcurrentLocks
public void initConcurrentLocks ()
同時ロックを初期化します
isFastbootdEnable
public boolean isFastbootdEnable ()
fastbootd モードのサポートが有効かどうかを返します。
戻り値 | |
---|---|
boolean |
フラッシュステーションが有効です
public boolean isFlashstationEnabled ()
flashstation でフラッシュを行う必要があるかどうかを返します。
戻り値 | |
---|---|
boolean |
isHostMetricReportingDisabled
public boolean isHostMetricReportingDisabled ()
ホスト メトリック レポートを無効にするかどうかを返します。
戻り値 | |
---|---|
boolean |
返却許可
public void returnPermit (IHostOptions.PermitLimitType type)
指定されたタイプの許可を返します
パラメーター | |
---|---|
type | IHostOptions.PermitLimitType |
shouldFlashWithFuseZip
public boolean shouldFlashWithFuseZip ()
ヒューズ マウントされたデバイス イメージ zip ファイルを使用してフラッシュを実行する必要があるかどうかを返します。
戻り値 | |
---|---|
boolean |
shouldUseSsoClient
public Boolean shouldUseSsoClient ()
SingleSignOn クライアントを使用する必要があるかどうかを確認します。
戻り値 | |
---|---|
Boolean |
許可を取る
public void takePermit (IHostOptions.PermitLimitType type)
指定された種類の許可を取得します
パラメーター | |
---|---|
type | IHostOptions.PermitLimitType |
検証オプション
public void validateOptions ()
IHostOptions
に設定されたオプションが有効であることを検証します。
投げる | |
---|---|
ConfigurationException |