GCSConfigurationFactory
public class GCSConfigurationFactory
extends ConfigurationFactory
java.lang.Object | ||
↳ | com.android.tradefed.config.ConfigurationFactory | |
↳ | com.android.tradefed.config.gcs.GCSConfigurationFactory |
ConfigurationFactory
โหลดการกำหนดค่าจาก Google Cloud Storage
สรุป
คลาสที่ซ้อนกัน | |
---|---|
class | GCSConfigurationFactory.GCSConfigLoader ส่วนขยายของ |
วิธีการสาธารณะ | |
---|---|
static IConfigurationFactory | getInstance ( IConfigurationServer configServer) รับอินสแตนซ์ |
File | getLatestDownloadedFile () |
วิธีการที่ได้รับการป้องกัน | |
---|---|
BufferedInputStream | getConfigStream (String name) โหลด InputStream สำหรับชื่อการกำหนดค่าที่กำหนดจาก Google Cloud Storage (GCS) |
ConfigurationDef | getConfigurationDef (String name, boolean isGlobal, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap) ดึงข้อมูล |
วิธีการสาธารณะ
รับอินสแตนซ์
public static IConfigurationFactory getInstance (IConfigurationServer configServer)
รับอินสแตนซ์ IConfigurationFactory
ซิงเกิลตัน
พารามิเตอร์ | |
---|---|
configServer | IConfigurationServer |
การส่งคืน | |
---|---|
IConfigurationFactory |
getLatestDownloadedFile.getLatestDownloadedFile
public File getLatestDownloadedFile ()
การส่งคืน | |
---|---|
File |
วิธีการที่ได้รับการป้องกัน
getConfigStream
protected BufferedInputStream getConfigStream (String name)
โหลด InputStream สำหรับชื่อการกำหนดค่าที่กำหนดจาก Google Cloud Storage (GCS)
พารามิเตอร์ | |
---|---|
name | String : ชื่อการกำหนดค่าที่จะโหลด |
การส่งคืน | |
---|---|
BufferedInputStream | ERROR(/BufferedInputStream) สำหรับการอ่านเนื้อหาการกำหนดค่า |
ขว้าง | |
---|---|
ConfigurationException | หากไม่พบการกำหนดค่า |
รับการกำหนดค่าDef
protected ConfigurationDef getConfigurationDef (String name, boolean isGlobal,templateMap)
ดึงข้อมูล ConfigurationDef
สำหรับชื่อที่กำหนด
พารามิเตอร์ | |
---|---|
name | String : ชื่อของการกำหนดค่าในตัวที่จะโหลดหรือเส้นทางของไฟล์ไปยังไฟล์การกำหนดค่าที่จะโหลด |
isGlobal | boolean |
templateMap |
การส่งคืน | |
---|---|
ConfigurationDef | ConfigurationDef |
ขว้าง | |
---|---|
ConfigurationException |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2023-12-01 UTC