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 () ส่งกลับเส้นทางที่ fastboot ควรใช้เป็นโฟลเดอร์ชั่วคราว |
int | getInUsePermits ( IHostOptions.PermitLimitType type) ส่งกลับจำนวนใบอนุญาตที่ใช้สำหรับประเภทที่กำหนด |
getKnownGceDeviceIpPool () gce-device ที่รู้จักซึ่งเชื่อมโยงกับ IP เฉพาะ | |
getKnownPreconfigureVirtualDevicePool () รู้จักพูลอุปกรณ์เสมือนที่กำหนดค่าไว้ล่วงหน้า | |
getKnownRemoteDeviceIpPool () อุปกรณ์ระยะไกลที่รู้จักซึ่งเชื่อมโยงกับ IP เฉพาะ | |
getKnownTcpDeviceIpPool () อุปกรณ์ tcp ที่รู้จักซึ่งเชื่อมโยงกับ IP เฉพาะ | |
getLabels () รับฉลากสำหรับโฮสต์ | |
String | getNetworkInterface () ส่งคืนอินเทอร์เฟซเครือข่ายที่ใช้เชื่อมต่อกับอุปกรณ์ทดสอบระยะไกล |
getServiceAccountJsonKeyFiles () ส่งคืนไฟล์คีย์ json ของบัญชีบริการ | |
long | getTestPhaseTimeout () ส่งกลับระยะหมดเวลาระดับการทดสอบที่ระบุ |
boolean | getUseZip64InPartialDownload () ตรวจสอบว่าควรใช้รูปแบบ zip64 ในการดาวน์โหลดบางส่วนหรือไม่ |
void | initConcurrentLocks () เริ่มต้นการล็อกพร้อมกัน |
boolean | isFastbootdEnable () ส่งกลับว่ามีการเปิดใช้งานการสนับสนุนโหมด fastbootd หรือไม่ |
void | returnPermit ( IHostOptions.PermitLimitType type) ส่งคืนใบอนุญาตประเภทที่กำหนด |
boolean | shouldFlashWithFuseZip () ส่งคืนว่าควรทำการกะพริบด้วยไฟล์ 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 ()
gce-device ที่รู้จักซึ่งเชื่อมโยงกับ IP เฉพาะ
คืนสินค้า | |
---|---|
getKnownPreconfigureVirtualDevicePool
publicgetKnownPreconfigureVirtualDevicePool ()
รู้จักพูลอุปกรณ์เสมือนที่กำหนดค่าไว้ล่วงหน้า
คืนสินค้า | |
---|---|
getKnownRemoteDeviceIpPool
publicgetKnownRemoteDeviceIpPool ()
อุปกรณ์ระยะไกลที่รู้จักซึ่งเชื่อมโยงกับ IP เฉพาะ
คืนสินค้า | |
---|---|
getKnownTcpDeviceIpPool
publicgetKnownTcpDeviceIpPool ()
อุปกรณ์ tcp ที่รู้จักซึ่งเชื่อมโยงกับ IP เฉพาะ
คืนสินค้า | |
---|---|
getLabels
publicgetLabels ()
รับฉลากสำหรับโฮสต์
คืนสินค้า | |
---|---|
getNetworkInterface
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 void returnPermit (IHostOptions.PermitLimitType type)
ส่งคืนใบอนุญาตประเภทที่กำหนด
พารามิเตอร์ | |
---|---|
type | IHostOptions.PermitLimitType |
ควรFlashWithFuseZip
public boolean shouldFlashWithFuseZip ()
ส่งคืนว่าควรทำการกะพริบด้วยไฟล์ zip อิมเมจอุปกรณ์ที่ติดตั้งฟิวส์หรือไม่
คืนสินค้า | |
---|---|
boolean |
ควรใช้SsoClient
public Boolean shouldUseSsoClient ()
ตรวจสอบว่าควรใช้ไคลเอนต์ SingleSignOn หรือไม่
คืนสินค้า | |
---|---|
Boolean |
รับใบอนุญาต
public void takePermit (IHostOptions.PermitLimitType type)
รับใบอนุญาตประเภทที่กำหนด
พารามิเตอร์ | |
---|---|
type | IHostOptions.PermitLimitType |
ตรวจสอบตัวเลือก
public void validateOptions ()
ตรวจสอบว่าตัวเลือกที่ตั้งค่าบน IHostOptions
นั้นถูกต้อง
ขว้าง | |
---|---|
ConfigurationException |