CommandRunner
public
class
CommandRunner
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.command.CommandRunner |
替代的 TradeFederation 進入點,會執行命令列引數中指定的指令,然後結束。
適用於偵錯工具和其他非互動式作業模式。
預期引數:[指令選項] (要執行的設定)
摘要
常數 | |
|---|---|
String |
DEVICE_DISCOVERY_TIMEOUT
|
String |
EXCEPTION_KEY
|
String |
START_FEATURE_SERVER
|
公用建構函式 | |
|---|---|
CommandRunner()
|
|
公用方法 | |
|---|---|
CommandRunner.ExitCode
|
getErrorCode()
|
static
void
|
main(String[] mainArgs)
|
void
|
run(String[] args)
執行指令的主要方法。 |
受保護的方法 | |
|---|---|
ClearcutClient
|
createClient()
|
常數
DEVICE_DISCOVERY_TIMEOUT
public static final String DEVICE_DISCOVERY_TIMEOUT
常數值: "DEVICE_DISCOVERY_TIMEOUT"
EXCEPTION_KEY
public static final String EXCEPTION_KEY
常數值: "serialized_exception"
START_FEATURE_SERVER
public static final String START_FEATURE_SERVER
常數值: "START_FEATURE_SERVER"
公用建構函式
CommandRunner
public CommandRunner ()
公用方法
main
public static void main (String[] mainArgs)
| 參數 | |
|---|---|
mainArgs |
String |
得分
public void run (String[] args)
執行指令的主要方法。
| 參數 | |
|---|---|
args |
String:要執行的設定名稱及其選項 |
受保護的方法
createClient
protected ClearcutClient createClient ()
| 傳回 | |
|---|---|
ClearcutClient |
|