Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

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.

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 bao gồm vòng tròn.

Phương thức 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 InputStream cho tên cấu hình đã cho từ Google Cloud Storage(GCS).

ConfigurationDef getConfigurationDef (String name, boolean isGlobal, templateMap) 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 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 InputStream cho tên cấu hình đã cho 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 xuất 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