GCSConfigurationFactory

public class GCSConfigurationFactory
extends ConfigurationFactory

java.lang.Object
   ↳ com.android.tradefed.config.ConfigurationFactory
     ↳ com.android.tradefed.config.gcs.GCSConfigurationFactory


ConfigurationFactory tải cấu hình từ Google Cloud Storage.

Tóm tắt

Lớp lồng ghép

class GCSConfigurationFactory.GCSConfigLoader

Tiện ích của ConfigurationFactory.ConfigLoader tải cấu hình từ GCS, theo dõi các cấu hình được đưa vào từ một cấu hình gốc và gửi một ngoại lệ về các cấu hình lồng nhau. 

Phương thức công khai

static IConfigurationFactory getInstance(IConfigurationServer configServer)

Lấy thực thể singleton IConfigurationFactory.

File getLatestDownloadedFile()

Phương thức được bảo vệ

BufferedInputStream getConfigStream(String name)

Tải InputStream cho tên cấu hình đã cho từ Google Cloud Storage(GCS).

ConfigurationDef getConfigurationDef(String name, boolean isGlobal, templateMap)

Truy xuất ConfigurationDef cho tên đã cho

Phương thức công khai

getInstance

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

Lấy thực thể singleton IConfigurationFactory.

Tham số
configServer IConfigurationServer

Giá trị trả về
IConfigurationFactory

getLatestDownloadedFile

public File getLatestDownloadedFile ()

Giá trị trả về
File

Phương thức được bảo vệ

getConfigStream

protected BufferedInputStream getConfigStream (String name)

Tải InputStream cho tên cấu hình đã cho từ Google Cloud Storage(GCS).

Tham số
name String: tên cấu hình cần tải

Giá trị trả về
BufferedInputStream ERROR(/BufferedInputStream) để đọc nội dung cấu hình

Gửi
ConfigurationException nếu không tìm thấy cấu hình

getConfigurationDef

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

Truy xuất ConfigurationDef cho tên đã cho

Tham số
name String: tên của cấu hình tích hợp sẵn để tải hoặc đường dẫn tệp đến tệp cấu hình cần tải

isGlobal boolean

templateMap

Giá trị trả về
ConfigurationDef ConfigurationDef

Gửi
ConfigurationException