主機選項
public class HostOptions
extends Object
implements IHostOptions
java.lang.Object | |
↳ | 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 設備。 | |
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 ()
公共方法
獲取可用許可證
public Integer getAvailablePermits (IHostOptions.PermitLimitType type)
返回給定類型的可用許可數
參數 | |
---|---|
type | IHostOptions.PermitLimitType |
退貨 | |
---|---|
Integer |
獲取緩存大小限制
public Long getCacheSizeLimit ()
返回本地文件緩存的最大允許大小(字節)。
退貨 | |
---|---|
Long |
getClFlashstation
public File getClFlashstation ()
返回遠程 cl_flashstation 腳本文件。
退貨 | |
---|---|
File |
獲取並發下載限制
public Integer getConcurrentDownloadLimit ()
返回允許的最大並發下載數。由下載遠程構建的IBuildProvider
使用。
退貨 | |
---|---|
Integer |
getConcurrentFlasherLimit
public Integer getConcurrentFlasherLimit ()
返回允許的並發閃爍的最大數量。由DeviceFlashPreparer
使用。
退貨 | |
---|---|
Integer | 並發閃光器限制。 |
獲取並發虛擬設備啟動限制
public Integer getConcurrentVirtualDeviceStartupLimit ()
返回允許並發虛擬設備啟動的最大數量。由啟動虛擬設備的RemoteAndroidVirtualDevice
使用。
退貨 | |
---|---|
Integer |
獲取下載緩存目錄
public File getDownloadCacheDir ()
返回用於存儲下載的工件的路徑。
退貨 | |
---|---|
File |
獲取FastbootTmpDir
public File getFastbootTmpDir ()
返回 fastboot 應該用作臨時文件夾的路徑。
退貨 | |
---|---|
File |
獲得使用許可
public int getInUsePermits (IHostOptions.PermitLimitType type)
返回給定類型正在使用的許可數
參數 | |
---|---|
type | IHostOptions.PermitLimitType |
退貨 | |
---|---|
int |
getKnownGceDeviceIpPool
publicgetKnownGceDeviceIpPool ()
與特定 IP 關聯的已知 gce 設備。
退貨 | |
---|---|
getKnownPreconfigureVirtualDevicePool
publicgetKnownPreconfigureVirtualDevicePool ()
已知的預配置虛擬設備池。
退貨 | |
---|---|
getKnownRemoteDeviceIpPool
publicgetKnownRemoteDeviceIpPool ()
與特定 IP 關聯的已知遠程設備。
退貨 | |
---|---|
getKnownTcpDeviceIpPool
publicgetKnownTcpDeviceIpPool ()
與特定 IP 關聯的已知 tcp 設備。
退貨 | |
---|---|
獲取標籤
publicgetLabels ()
獲取主機標籤。
退貨 | |
---|---|
獲取網絡接口
public String getNetworkInterface ()
返回用於連接到遠程測試設備的網絡接口。
退貨 | |
---|---|
String |
getServiceAccountJsonKeyFiles
publicgetServiceAccountJsonKeyFiles ()
返回服務帳戶 json 密鑰文件的映射。
退貨 | |
---|---|
獲取測試階段超時
public long getTestPhaseTimeout ()
返回指定的測試階段級別超時。默認值為 0,表示沒有超時。
退貨 | |
---|---|
long |
getUseZip64InPartialDownload
public boolean getUseZip64InPartialDownload ()
檢查它是否應該在部分下載中使用 zip64 格式。
退貨 | |
---|---|
boolean |
初始化並發鎖
public void initConcurrentLocks ()
初始化並發鎖
isFastbootdEnable
public boolean isFastbootdEnable ()
返回是否啟用了 fastbootd 模式支持。
退貨 | |
---|---|
boolean |
isFlashstationEnabled
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 |
應該使用SsoClient
public Boolean shouldUseSsoClient ()
檢查它是否應該使用 SingleSignOn 客戶端。
退貨 | |
---|---|
Boolean |
拿許可證
public void takePermit (IHostOptions.PermitLimitType type)
獲取給定類型的許可證
參數 | |
---|---|
type | IHostOptions.PermitLimitType |