SandboxConfigurationFactory
public
class
SandboxConfigurationFactory
extends ConfigurationFactory
| java.lang.Object | ||
| ↳ | com.android.tradefed.config.ConfigurationFactory | |
| ↳ | com.android.tradefed.config.SandboxConfigurationFactory | |
Special Configuration factory to handle creation of configurations for Sandboxing purpose.
TODO: Split the configuration dump part to another class
สรุป
ฟิลด์ | |
|---|---|
public
static
final
Set<String> |
OPTION_IGNORED_ELEMENTS
|
เครื่องมือสร้างสาธารณะ | |
|---|---|
SandboxConfigurationFactory()
|
|
เมธอดสาธารณะ | |
|---|---|
IConfiguration
|
createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)
สร้าง |
IConfiguration
|
createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig, boolean skipJavaCheck)
สร้าง |
IConfiguration
|
createConfigurationFromArgs(String[] arrayArgs, SandboxConfigDump.DumpCmd command)
เมื่อเรียกใช้การดัมพ์สำหรับคำสั่ง |
static
SandboxConfigurationFactory
|
getInstance()
รับอินสแตนซ์ |
วิธีการที่ได้รับการป้องกัน | |
|---|---|
ConfigurationDef
|
createConfigurationDef(String name)
วิธีการภายในในการสร้าง |
ConfigurationDef
|
getConfigurationDef(String name, boolean isGlobal, Map<String, String> templateMap)
ดึงข้อมูล |
ทุ่ง
OPTION_IGNORED_ELEMENTS
public static final Set<String> OPTION_IGNORED_ELEMENTS
เครื่องมือสร้างสาธารณะ
SandboxConfigurationFactory
public SandboxConfigurationFactory ()
เมธอดสาธารณะ
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)
สร้าง IConfiguration ตามบรรทัดคำสั่งและแซนด์บ็อกซ์ที่ให้ไว้
| พารามิเตอร์ | |
|---|---|
args |
String: บรรทัดคำสั่งสำหรับการเรียกใช้ |
keyStoreClient |
IKeyStoreClient: IKeyStoreClient ที่ใช้โหลดคีย์ |
sandbox |
ISandbox: ISandbox ที่ใช้ในการเรียกใช้ |
runUtil |
IRunUtil: IRunUtil เพื่อเรียกใช้คำสั่ง |
| การคืนสินค้า | |
|---|---|
IConfiguration |
IConfiguration ที่ใช้ได้กับแซนด์บ็อกซ์ |
| ส่ง | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig, boolean skipJavaCheck)
สร้าง IConfiguration ตามบรรทัดคำสั่งและแซนด์บ็อกซ์ที่ให้ไว้
| พารามิเตอร์ | |
|---|---|
args |
String: บรรทัดคำสั่งสำหรับการเรียกใช้ |
keyStoreClient |
IKeyStoreClient: IKeyStoreClient ที่ใช้โหลดคีย์ |
sandbox |
ISandbox: ISandbox ที่ใช้ในการเรียกใช้ |
runUtil |
IRunUtil: IRunUtil เพื่อเรียกใช้คำสั่ง |
globalConfig |
File |
skipJavaCheck |
boolean |
| การคืนสินค้า | |
|---|---|
IConfiguration |
IConfiguration ที่ใช้ได้กับแซนด์บ็อกซ์ |
| ส่ง | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
createConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] arrayArgs, SandboxConfigDump.DumpCmd command)
เมื่อเรียกใช้การดัมพ์สำหรับคำสั่ง สร้างการกำหนดค่าตามความคาดหวังที่เฉพาะเจาะจง
| พารามิเตอร์ | |
|---|---|
arrayArgs |
String: บรรทัดคำสั่งสำหรับการเรียกใช้ |
command |
SandboxConfigDump.DumpCmd: คำสั่งดัมพ์กำลังดำเนินการ |
| การคืนสินค้า | |
|---|---|
IConfiguration |
IConfiguration ที่ใช้ได้สำหรับ Sandbox ที่มีการควบคุมเวอร์ชัน |
| ส่ง | |
|---|---|
|
com.android.tradefed.config.ConfigurationException |
ConfigurationException |
|
getInstance
public static SandboxConfigurationFactory getInstance ()
รับอินสแตนซ์ IConfigurationFactory Singleton
| การคืนสินค้า | |
|---|---|
SandboxConfigurationFactory |
|
วิธีการที่ได้รับการป้องกัน
createConfigurationDef
protected ConfigurationDef createConfigurationDef (String name)
วิธีการภายในในการสร้าง ConfigurationDef
| พารามิเตอร์ | |
|---|---|
name |
String |
| การคืนสินค้า | |
|---|---|
ConfigurationDef |
|
getConfigurationDef
protected ConfigurationDef getConfigurationDef (String name, boolean isGlobal, Map<String, String> templateMap)
ดึงข้อมูล ConfigurationDef สำหรับชื่อที่ระบุ
| พารามิเตอร์ | |
|---|---|
name |
String: ชื่อของการกำหนดค่าในตัวที่จะโหลดหรือเส้นทางไฟล์ไปยังไฟล์กำหนดค่า
ที่จะโหลด |
isGlobal |
boolean |
templateMap |
Map |
| การคืนสินค้า | |
|---|---|
ConfigurationDef |
ConfigurationDef |
| ส่ง | |
|---|---|
ConfigurationException |
|