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()
ดำเนินการ |
เมธอดสาธารณะ
ยกเลิก
public abstract void cancel ()
ยกเลิกการดำเนินการ
checkOutputMonitor
public boolean checkOutputMonitor (Long idleOutputTimeout)
ตรวจสอบว่าการดำเนินการที่ดำเนินอยู่มีความคืบหน้าหรือไม่นับตั้งแต่การตรวจสอบครั้งล่าสุด
| พารามิเตอร์ | |
|---|---|
idleOutputTimeout |
Long: ms ที่ไม่ได้ใช้งานโดยไม่มีการดำเนินการใดๆ ก่อนที่จะเริ่มถือว่าไม่มีการดำเนินการ |
| คิกรีเทิร์น | |
|---|---|
boolean |
จริงหากตรวจพบความคืบหน้า หรือเป็นเท็จ |
getCommand
publicgetCommand ()
แสดงผลคําสั่งที่เชื่อมโยงกับไฟล์ที่เรียกใช้ได้
| คิกรีเทิร์น | |
|---|---|
|
|
getResult
public CommandResult getResult ()
แสดงผล CommandResult ที่เชื่อมโยงกับคําสั่ง
| คิกรีเทิร์น | |
|---|---|
CommandResult |
|
โฮมรัน
public abstract boolean run ()
ดำเนินการ
| คิกรีเทิร์น | |
|---|---|
boolean |
true if operation is performed successfully, false
otherwise |
| โยน | |
|---|---|
Exception |
หากการดําเนินการสิ้นสุดลงอย่างผิดปกติ |