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, 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 ERROR(/BufferedInputStream) สําหรับการอ่านเนื้อหาการกําหนดค่า

การโยน
ConfigurationException if config could not be found

getConfigurationDef

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

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

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

isGlobal boolean

templateMap

คิกรีเทิร์น
ConfigurationDef ConfigurationDef

การโยน
ConfigurationException