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 that wraps the details of executing shell command on an ITestDevice.

Must implement processOutput(String) to process the command output and determine return of the Callable

Summary

Public constructors

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

Public methods

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

Public constructors

DeviceConcurrentUtil.ShellCommandCallable

DeviceConcurrentUtil.ShellCommandCallable ()

DeviceConcurrentUtil.ShellCommandCallable

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

Parameters
device ITestDevice

command String

timeout long

Public methods

call

V call ()

Returns
V

Throws
Exception

processOutput

V processOutput (String output)

Parameters
output String

Returns
V

setCommand

ShellCommandCallable<V> setCommand (String command)

Parameters
command String

Returns
ShellCommandCallable<V>

setDevice

ShellCommandCallable<V> setDevice (ITestDevice device)

Parameters
device ITestDevice

Returns
ShellCommandCallable<V>

setTimeout

ShellCommandCallable<V> setTimeout (long timeout)

Parameters
timeout long

Returns
ShellCommandCallable<V>