DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

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


ERROR(/Callable) gói thông tin chi tiết về việc thực thi lệnh shell trên ITestDevice.

Phải triển khai processOutput(String) để xử lý đầu ra của lệnh và xác định kết quả trả về của Callable

Tóm tắt

Hàm khởi tạo công khai

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

Phương thức công khai

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

Hàm khởi tạo công khai

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

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

Tham số
device ITestDevice

command String

timeout long

Phương thức công khai

cuộc gọi

public V call ()

Giá trị trả về
V

processOutput

public abstract V processOutput (String output)

Tham số
output String

Giá trị trả về
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Tham số
command String

Giá trị trả về
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Tham số
device ITestDevice

Giá trị trả về
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Tham số
timeout long

Trả về
ShellCommandCallable<V>