SandboxConfigurationFactory
public
class
SandboxConfigurationFactory
extends ConfigurationFactory
| java.lang.Object | ||
| ↳ | com.android.tradefed.config.ConfigurationFactory | |
| ↳ | com.android.tradefed.config.SandboxConfigurationFactory | |
Special Configuration factory เพื่อจัดการการสร้างการกําหนดค่าสําหรับวัตถุประสงค์ของการสร้างแซนด์บ็อกซ์
TODO: Split the configuration dump part to another class
สรุป
ช่อง | |
|---|---|
public
static
final
|
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,
ดึงข้อมูล |
ช่อง
OPTION_IGNORED_ELEMENTS
public static finalOPTION_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,templateMap)
ดึงข้อมูล ConfigurationDef สำหรับชื่อที่ระบุ
| พารามิเตอร์ | |
|---|---|
name |
String: ชื่อการกําหนดค่าในตัวที่จะโหลด หรือเส้นทางไฟล์ไปยังไฟล์การกําหนดค่าที่จะโหลด |
isGlobal |
boolean |
templateMap |
|
| คิกรีเทิร์น | |
|---|---|
ConfigurationDef |
ConfigurationDef |
| การโยน | |
|---|---|
ConfigurationException |
|