DeviceConcurrentUtil.ShellCommandCallable

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

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


Bir Callable, ITestDevice üzerinde kabuk komutunu yürütme ayrıntılarını kapsar.

Komut çıkışını işlemek ve Callable değerinin döndürülüp döndürülmeyeceğini belirlemek için processOutput(String) uygulanmalıdır.

Özet

Herkese açık oluşturucular

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

Herkese açık yöntemler

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

Herkese açık oluşturucular

ShellCommandCallable

public ShellCommandCallable ()

ShellCommandCallable

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

Parametreler
device ITestDevice

command String

timeout long

Herkese açık yöntemler

call

public V call ()

İadeler
V

Verdiği hatalar
Exception

processOutput

public abstract V processOutput (String output)

Parametreler
output String

İadeler
V

setCommand

public ShellCommandCallable<V> setCommand (String command)

Parametreler
command String

İadeler
ShellCommandCallable<V>

setDevice

public ShellCommandCallable<V> setDevice (ITestDevice device)

Parametreler
device ITestDevice

İadeler
ShellCommandCallable<V>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

Parametreler
timeout long

Return'ler
ShellCommandCallable<V>