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 แบบ Singleton

File getLatestDownloadedFile()

เมธอดที่ได้รับการปกป้อง

BufferedInputStream getConfigStream(String name)

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

ConfigurationDef getConfigurationDef(String name, boolean isGlobal, Map<String, String> templateMap)

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

เมธอดสาธารณะ

getInstance

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

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

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

การคืนสินค้า
IConfigurationFactory

getLatestDownloadedFile

public File getLatestDownloadedFile ()

การคืนสินค้า
File

เมธอดที่ได้รับการปกป้อง

getConfigStream

protected BufferedInputStream getConfigStream (String name)

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

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

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

ส่ง
ConfigurationException หากไม่พบการกำหนดค่า

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                Map<String, String> templateMap)

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

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

isGlobal boolean

templateMap Map

การคืนสินค้า
ConfigurationDef ConfigurationDef

ส่ง
ConfigurationException