DeviceConcurrentUtil.ShellCommandCallable
public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object
java.lang.Objek | |
↳ | com.Android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V> |
ERROR(/Callable)
yang merangkum detail eksekusi perintah shell pada ITestDevice
.
Harus mengimplementasikan processOutput(String)
untuk memproses output perintah dan menentukan kembalinya Callable
Ringkasan
Konstruktor publik | |
---|---|
ShellCommandCallable () | |
ShellCommandCallable ( ITestDevice device, String command, long timeout) |
Metode publik | |
---|---|
V | call () |
abstract V | processOutput (String output) |
ShellCommandCallable <V> | setCommand (String command) |
ShellCommandCallable <V> | setDevice ( ITestDevice device) |
ShellCommandCallable <V> | setTimeout (long timeout) |
Konstruktor publik
ShellCommandCallable
public ShellCommandCallable ()
ShellCommandCallable
public ShellCommandCallable (ITestDevice device, String command, long timeout)
Parameter | |
---|---|
device | ITestDevice |
command | String |
timeout | long |
Metode publik
panggilan
public V call ()
Kembali | |
---|---|
V |
keluaran proses
public abstract V processOutput (String output)
Parameter | |
---|---|
output | String |
Kembali | |
---|---|
V |
setCommand
public ShellCommandCallable<V> setCommand (String command)
Parameter | |
---|---|
command | String |
Kembali | |
---|---|
ShellCommandCallable <V> |
setPerangkat
public ShellCommandCallable<V> setDevice (ITestDevice device)
Parameter | |
---|---|
device | ITestDevice |
Kembali | |
---|---|
ShellCommandCallable <V> |
setWaktu habis
public ShellCommandCallable<V> setTimeout (long timeout)
Parameter | |
---|---|
timeout | long |
Kembali | |
---|---|
ShellCommandCallable <V> |