IRunUtil.IRunnableResult
public
static
interface
IRunUtil.IRunnableResult
| com.android.tradefed.util.IRunUtil.IRunnableResult |
這個介面用於非同步執行作業,並傳回布林狀態。
摘要
公用方法 | |
|---|---|
abstract
void
|
cancel()
取消作業。 |
default
boolean
|
checkOutputMonitor(Long idleOutputTimeout)
檢查目前執行的作業自上次檢查後是否有所進展。 |
default
List<String>
|
getCommand()
傳回與可執行檔相關聯的指令。 |
default
CommandResult
|
getResult()
傳回與指令相關聯的 |
abstract
boolean
|
run()
執行作業。 |
公用方法
取消
public abstract void cancel ()
取消作業。
checkOutputMonitor
public boolean checkOutputMonitor (Long idleOutputTimeout)
檢查目前執行的作業自上次檢查後是否有所進展。
| 參數 | |
|---|---|
idleOutputTimeout |
Long:毫秒閒置,且在開始假設沒有進度前,未觀察到任何進度。 |
| 傳回 | |
|---|---|
boolean |
如果偵測到進度,則為 true,否則為 false。 |
getCommand
public List<String> getCommand ()
傳回與可執行檔相關聯的指令。
| 傳回 | |
|---|---|
List<String> |
|
得分
public abstract boolean run ()
執行作業。
| 傳回 | |
|---|---|
boolean |
如果作業順利完成,則為 true,否則為 false |
| 擲回 | |
|---|---|
Exception |
如果作業異常終止 |