Nhà máy cấu hình GCS

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.

Bản tóm tắt

Các lớp lồng nhau

class GCSConfigurationFactory.GCSConfigLoader

Tiện ích mở rộng của ConfigurationFactory.ConfigLoader tải cấu hình từ GCS, theo dõi các cấu hình được bao gồm từ một cấu hình gốc và đưa ra một ngoại lệ trên vòng tròn bao gồm.

Phương pháp công khai

static IConfigurationFactory getInstance ( IConfigurationServer configServer)

Lấy phiên bản IConfigurationFactory đơn lẻ.

File getLatestDownloadedFile ()

Phương pháp được bảo vệ

BufferedInputStream getConfigStream (String name)

Tải Dòng đầu vào cho tên cấu hình nhất định từ Google Cloud Storage(GCS).

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

Truy ConfigurationDef cho tên đã cho

Phương pháp công khai

lấy sơ thẩm

public static IConfigurationFactory getInstance (IConfigurationServer configServer)

Lấy phiên bản IConfigurationFactory đơn lẻ.

Thông số
configServer IConfigurationServer

Trả lại
IConfigurationFactory

getLatestDownloadedFile

public File getLatestDownloadedFile ()

Trả lại
File

Phương pháp được bảo vệ

getConfigStream

protected BufferedInputStream getConfigStream (String name)

Tải Dòng đầu vào cho tên cấu hình nhất định từ Google Cloud Storage(GCS).

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

Trả lại
BufferedInputStream một ERROR(/BufferedInputStream) để đọc nội dung cấu hình

Ném
ConfigurationException nếu không tìm thấy cấu hình

getConfigurationDef

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

Truy ConfigurationDef cho tên đã cho

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

isGlobal boolean

templateMap

Trả lại
ConfigurationDef ConfigurationDef

Ném
ConfigurationException