GCSการกำหนดค่าโรงงาน

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)

รับอินสแตนซ์ singleton 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)

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

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

ส่งคืน
IConfigurationFactory

รับไฟล์ที่ดาวน์โหลดล่าสุด

public File getLatestDownloadedFile ()

ส่งคืน
File

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

รับ ConfigStream

protected BufferedInputStream getConfigStream (String name)

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

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

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

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

รับ ConfigurationDef

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

เรียก ConfigurationDef สำหรับชื่อที่กำหนด

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

isGlobal boolean

templateMap

ส่งคืน
ConfigurationDef ConfigurationDef

พ่น
ConfigurationException