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.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