DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object implements Callable<V>

java.lang.Object
com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V>


A Callable ที่ห่อหุ้มรายละเอียดของการเรียกใช้คำสั่งเชลล์ใน an ITestDevice

ต้องใช้ processOutput(String) เพื่อประมวลผลเอาต์พุตของคำสั่ง และกำหนดการคืนค่าของ Callable

สรุป

เครื่องมือสร้างสาธารณะ

ShellCommandCallable()
ShellCommandCallable(ITestDevice device, String command, long timeout)

เมธอดสาธารณะ

V call()
abstract V processOutput(String output)
ShellCommandCallable<V> setCommand(String command)
ShellCommandCallable<V> setDevice(ITestDevice device)
ShellCommandCallable<V> setTimeout(long timeout)

เครื่องมือสร้างสาธารณะ

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

public ShellCommandCallable (ITestDevice device, 
                String command, 
                long timeout)

พารามิเตอร์
device ITestDevice

command String

timeout long

เมธอดสาธารณะ

โทร

public V call ()

การคืนสินค้า
V

ส่ง
Exception

processOutput

public abstract V processOutput (String output)

พารามิเตอร์
output String

การคืนสินค้า
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

พารามิเตอร์
command String

การคืนสินค้า
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

พารามิเตอร์
device ITestDevice

การคืนสินค้า
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

พารามิเตอร์
timeout long

การคืนสินค้า
ShellCommandCallable<V>