SandboxConfigurationFactory
public
class
SandboxConfigurationFactory
extends ConfigurationFactory
| java.lang.Object | ||
| ↳ | com.android.tradefed.config.ConfigurationFactory | |
| ↳ | com.android.tradefed.config.SandboxConfigurationFactory | |
Nhà máy Cấu hình đặc biệt để xử lý việc tạo cấu hình cho mục đích Hộp cát.
VIỆC CẦN LÀM: Phân tách phần kết xuất cấu hình sang một lớp khác
Tóm tắt
Trường | |
|---|---|
public
static
final
|
OPTION_IGNORED_ELEMENTS
|
Hàm khởi tạo công khai | |
|---|---|
SandboxConfigurationFactory()
|
|
Phương thức công khai | |
|---|---|
IConfiguration
|
createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)
Tạo |
IConfiguration
|
createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig, boolean skipJavaCheck)
Tạo |
IConfiguration
|
createConfigurationFromArgs(String[] arrayArgs, SandboxConfigDump.DumpCmd command)
Khi chạy tệp báo lỗi cho một lệnh. |
static
SandboxConfigurationFactory
|
getInstance()
Lấy thực thể singleton |
Phương thức được bảo vệ | |
|---|---|
ConfigurationDef
|
createConfigurationDef(String name)
Phương thức nội bộ để tạo |
ConfigurationDef
|
getConfigurationDef(String name, boolean isGlobal,
Truy xuất |
Trường
OPTION_IGNORED_ELEMENTS
public static finalOPTION_IGNORED_ELEMENTS
Hàm khởi tạo công khai
SandboxConfigurationFactory
public SandboxConfigurationFactory ()
Phương thức công khai
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)
Tạo IConfiguration dựa trên dòng lệnh và hộp cát được cung cấp.
| Tham số | |
|---|---|
args |
String: dòng lệnh để chạy. |
keyStoreClient |
IKeyStoreClient: IKeyStoreClient nơi tải khoá. |
sandbox |
ISandbox: ISandbox dùng cho lần chạy. |
runUtil |
IRunUtil: IRunUtil để chạy các lệnh. |
| Giá trị trả về | |
|---|---|
IConfiguration |
một IConfiguration hợp lệ cho hộp cát. |
| Gửi | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig, boolean skipJavaCheck)
Tạo IConfiguration dựa trên dòng lệnh và hộp cát được cung cấp.
| Tham số | |
|---|---|
args |
String: dòng lệnh để chạy. |
keyStoreClient |
IKeyStoreClient: IKeyStoreClient nơi tải khoá. |
sandbox |
ISandbox: ISandbox dùng cho lần chạy. |
runUtil |
IRunUtil: IRunUtil để chạy các lệnh. |
globalConfig |
File |
skipJavaCheck |
boolean |
| Giá trị trả về | |
|---|---|
IConfiguration |
một IConfiguration hợp lệ cho hộp cát. |
| Gửi | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] arrayArgs, SandboxConfigDump.DumpCmd command)
Khi chạy tệp báo lỗi cho một lệnh. Tạo một cấu hình có các kỳ vọng cụ thể.
| Tham số | |
|---|---|
arrayArgs |
String: dòng lệnh để chạy. |
command |
SandboxConfigDump.DumpCmd: Lệnh kết xuất đang diễn ra |
| Giá trị trả về | |
|---|---|
IConfiguration |
IConfiguration hợp lệ cho Hộp cát VERSIONED. |
| Gửi | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
getInstance
public static SandboxConfigurationFactory getInstance ()
Lấy thực thể singleton IConfigurationFactory.
| Giá trị trả về | |
|---|---|
SandboxConfigurationFactory |
|
Phương thức được bảo vệ
createConfigurationDef
protected ConfigurationDef createConfigurationDef (String name)
Phương thức nội bộ để tạo ConfigurationDef
| Tham số | |
|---|---|
name |
String |
| Giá trị trả về | |
|---|---|
ConfigurationDef |
|
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 |
|