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