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
ส่วนขยายของ |
เมธอดสาธารณะ | |
---|---|
static
IConfigurationFactory
|
getInstance(IConfigurationServer configServer)
รับอินสแตนซ์ |
File
|
getLatestDownloadedFile()
|
วิธีการที่มีการป้องกัน | |
---|---|
BufferedInputStream
|
getConfigStream(String name)
โหลด InputStream สำหรับชื่อการกําหนดค่าที่ระบุจาก Google Cloud Storage(GCS) |
ConfigurationDef
|
getConfigurationDef(String name, boolean isGlobal,
ดึงข้อมูล |
เมธอดสาธารณะ
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 |