DeviceConcurrentUtil.ShellCommand قابل فراخوانی

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

شیء جاوا
com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V>


یک Callable که جزئیات اجرای دستور shell روی یک 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)

سازندگان عمومی

ShellCommand قابل فراخوانی

public ShellCommandCallable ()

ShellCommand قابل فراخوانی

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

پارامترها
device ITestDevice

command String

timeout long

روش‌های عمومی

تماس بگیرید

public V call ()

بازگشت‌ها
V

پرتاب‌ها
Exception

خروجی پردازش

public abstract V processOutput (String output)

پارامترها
output String

بازگشت‌ها
V

دستور set

public ShellCommandCallable<V> setCommand (String command)

پارامترها
command String

بازگشت‌ها
ShellCommandCallable <V>

دستگاه تنظیم‌شده

public ShellCommandCallable<V> setDevice (ITestDevice device)

پارامترها
device ITestDevice

بازگشت‌ها
ShellCommandCallable <V>

تنظیم زمان انتظار

public ShellCommandCallable<V> setTimeout (long timeout)

پارامترها
timeout long

بازگشت‌ها
ShellCommandCallable <V>