จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

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

ส่วนขยายของ ConfigurationFactory.ConfigLoader ที่โหลดการกำหนดค่าจาก GCS ติดตามการกำหนดค่าที่รวมจากการกำหนดค่ารูทหนึ่งรายการ และแสดงข้อยกเว้นเกี่ยวกับการรวมแบบวงกลม

วิธีการสาธารณะ

static IConfigurationFactory getInstance ( IConfigurationServer configServer)

รับอินสแตนซ์ IConfigurationFactory ซิงเกิลตัน

File getLatestDownloadedFile ()

วิธีการป้องกัน

BufferedInputStream getConfigStream (String name)

โหลด InputStream สำหรับชื่อการกำหนดค่าที่กำหนดจาก Google Cloud Storage (GCS)

ConfigurationDef getConfigurationDef (String name, boolean isGlobal, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap)

ดึงข้อมูล ConfigurationDef สำหรับชื่อที่กำหนด

วิธีการสาธารณะ

รับอินสแตนซ์

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

รับอินสแตนซ์ IConfigurationFactory ซิงเกิลตัน

พารามิเตอร์
configServer IConfigurationServer

คืนสินค้า
IConfigurationFactory

getLatestDownloadedFile

public File getLatestDownloadedFile ()

คืนสินค้า
File

วิธีการป้องกัน

getConfigStream

protected BufferedInputStream getConfigStream (String name)

โหลด InputStream สำหรับชื่อการกำหนดค่าที่กำหนดจาก Google Cloud Storage (GCS)

พารามิเตอร์
name String : ชื่อการกำหนดค่าที่จะโหลด

คืนสินค้า
BufferedInputStream ERROR(/BufferedInputStream) สำหรับการอ่านเนื้อหาการกำหนดค่า

ขว้าง
ConfigurationException หากไม่พบการกำหนดค่า

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                 templateMap)

ดึงข้อมูล ConfigurationDef สำหรับชื่อที่กำหนด

พารามิเตอร์
name String : ชื่อของการกำหนดค่าในตัวที่จะโหลดหรือเส้นทางของไฟล์ไปยังไฟล์การกำหนดค่าที่จะโหลด

isGlobal boolean

templateMap

คืนสินค้า
ConfigurationDef ConfigurationDef

ขว้าง
ConfigurationException