DeviceConcurrentUtil.ShellCommandCallable

public static abstract class DeviceConcurrentUtil.ShellCommandCallable
extends Object

java.lang.객체
com.android.tradefed.util.DeviceConcurrentUtil.ShellCommandCallable<V>


ITestDevice 에서 쉘 명령을 실행하는 세부 정보를 래핑하는 ERROR(/Callable) .

명령 출력을 처리하고 Callable 의 반환을 결정하려면 processOutput(String) 을 구현해야 합니다.

요약

공개 생성자

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)

공개 생성자

쉘 명령 호출 가능

public ShellCommandCallable ()

쉘 명령 호출 가능

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

매개변수
device ITestDevice

command String

timeout long

공개 메서드

전화

public V call ()

보고
V

프로세스 출력

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>

setTimeout

public ShellCommandCallable<V> setTimeout (long timeout)

매개변수
timeout long

보고
ShellCommandCallable <V>