HostOptions
public
class
HostOptions
extends Object
implements
IHostOptions
java.lang.Object | |
↳ | com.android.tradefed.host.HostOptions |
主機選項持有者類別。這個類別用於儲存主機端選項。
摘要
公用建構函式 | |
---|---|
HostOptions()
|
公用方法 | |
---|---|
Integer
|
getAvailablePermits(IHostOptions.PermitLimitType type)
傳回指定類型的可用許可證數量 |
Long
|
getCacheSizeLimit()
傳回本機檔案快取的最大允許大小(位元組)。 |
Integer
|
getConcurrentDownloadLimit()
傳回允許的並行下載次數上限。 |
Integer
|
getConcurrentFlasherLimit()
傳回允許的並行閃爍次數上限。 |
Integer
|
getConcurrentVirtualDeviceStartupLimit()
傳回允許的並行虛擬裝置啟動數量上限。 |
File
|
getDownloadCacheDir()
傳回用於儲存下載構件的路徑。 |
File
|
getFastbootTmpDir()
傳回快速系統啟動模式應使用的暫存資料夾路徑。 |
int
|
getInUsePermits(IHostOptions.PermitLimitType type)
傳回指定類型中正在使用的許可證數量 |
|
getKnownGceDeviceIpPool()
與特定 IP 相關聯的已知 gce-device。 |
|
getKnownPreconfigureNativeDevicePool()
已知的預先設定原生裝置 IP 集區。 |
|
getKnownPreconfigureVirtualDevicePool()
已知的預先設定虛擬裝置資源池。 |
|
getKnownRemoteDeviceIpPool()
與特定 IP 相關聯的已知遠端裝置。 |
|
getLabels()
取得主機的標籤。 |
String
|
getNetworkInterface()
傳回用於連線至遠端測試裝置的網路介面。 |
|
getServiceAccountJsonKeyFiles()
傳回服務帳戶 JSON 金鑰檔案的 Map。 |
long
|
getTestPhaseTimeout()
傳回指定的測試階段層級逾時時間。 |
boolean
|
getUseZip64InPartialDownload()
檢查是否應在部分下載中使用 zip64 格式。 |
void
|
initConcurrentLocks()
初始化並行鎖定 |
boolean
|
isFastbootdEnable()
傳回是否啟用快速啟動模式支援功能。 |
boolean
|
isHostMetricReportingDisabled()
傳回是否應停用主機指標回報功能。 |
boolean
|
isIncrementalFlashingEnabled()
傳回是否啟用遞增閃爍功能。 |
boolean
|
isOptOutOfIncrementalFlashing()
傳回主機是否已選擇不使用遞增式閃燈。 |
void
|
returnPermit(IHostOptions.PermitLimitType type)
傳回指定類型的許可證 |
boolean
|
shouldFlashWithFuseZip()
傳回是否應使用 Fuse 掛接的裝置映像檔 zip 檔案進行刷新作業。 |
Boolean
|
shouldUseSsoClient()
檢查是否應使用 SingleSignOn 用戶端。 |
void
|
takePermit(IHostOptions.PermitLimitType type)
取得指定類型的許可 |
void
|
validateOptions()
驗證 |
公用建構函式
HostOptions
public HostOptions ()
公用方法
getAvailablePermits
public Integer getAvailablePermits (IHostOptions.PermitLimitType type)
傳回指定類型可用的許可證數量
參數 | |
---|---|
type |
IHostOptions.PermitLimitType |
傳回 | |
---|---|
Integer |
getCacheSizeLimit
public Long getCacheSizeLimit ()
傳回本機檔案快取的最大允許大小(位元組)。
傳回 | |
---|---|
Long |
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。
傳回 | |
---|---|
|
getKnownPreconfigureNativeDevicePool
publicgetKnownPreconfigureNativeDevicePool ()
已知的預先設定原生裝置 IP 集區。
傳回 | |
---|---|
|
getKnownPreconfigureVirtualDevicePool
publicgetKnownPreconfigureVirtualDevicePool ()
已知的預先設定虛擬裝置資源池。
傳回 | |
---|---|
|
getKnownRemoteDeviceIpPool
publicgetKnownRemoteDeviceIpPool ()
與特定 IP 相關聯的已知遠端裝置。
傳回 | |
---|---|
|
getLabels
publicgetLabels ()
取得主機的標籤。
傳回 | |
---|---|
|
getNetworkInterface
public String getNetworkInterface ()
傳回用於連線至遠端測試裝置的網路介面。
傳回 | |
---|---|
String |
getServiceAccountJsonKeyFiles
publicgetServiceAccountJsonKeyFiles ()
傳回服務帳戶 JSON 金鑰檔案的 Map。
傳回 | |
---|---|
|
getTestPhaseTimeout
public long getTestPhaseTimeout ()
傳回指定的測試階段層級逾時時間。預設值為 0,表示沒有逾時限制。
傳回 | |
---|---|
long |
getUseZip64InPartialDownload
public boolean getUseZip64InPartialDownload ()
檢查是否應在部分下載中使用 zip64 格式。
傳回 | |
---|---|
boolean |
initConcurrentLocks
public void initConcurrentLocks ()
初始化並行鎖定
isFastbootdEnable
public boolean isFastbootdEnable ()
傳回是否啟用快速啟動模式支援功能。
傳回 | |
---|---|
boolean |
isHostMetricReportingDisabled
public boolean isHostMetricReportingDisabled ()
傳回是否應停用主機指標回報功能。
傳回 | |
---|---|
boolean |
isIncrementalFlashingEnabled
public boolean isIncrementalFlashingEnabled ()
傳回是否啟用遞增閃爍功能。
傳回 | |
---|---|
boolean |
isOptOutOfIncrementalFlashing
public boolean isOptOutOfIncrementalFlashing ()
傳回主機是否已選擇不使用遞增式閃燈。
傳回 | |
---|---|
boolean |
returnPermit
public void returnPermit (IHostOptions.PermitLimitType type)
傳回指定類型的許可
參數 | |
---|---|
type |
IHostOptions.PermitLimitType |
shouldFlashWithFuseZip
public boolean shouldFlashWithFuseZip ()
傳回是否應使用 Fuse 掛接的裝置映像檔 zip 檔案進行刷新作業。
傳回 | |
---|---|
boolean |
shouldUseSsoClient
public Boolean shouldUseSsoClient ()
檢查是否應使用 SingleSignOn 用戶端。
傳回 | |
---|---|
Boolean |
takePermit
public void takePermit (IHostOptions.PermitLimitType type)
取得指定類型的許可
參數 | |
---|---|
type |
IHostOptions.PermitLimitType |
validateOptions
public void validateOptions ()
驗證 IHostOptions
上設定的選項是否有效。
擲回 | |
---|---|
ConfigurationException |