DeviceConcurrentUtil

public class DeviceConcurrentUtil
extends Object

java.lang.객체
com.android.tradefed.util.DeviceConcurrentUtil


동시 장치 측 명령 실행을 위한 유틸리티 메서드 및 클래스 포함

ShellCommandCallable 로 구현된 명령을 실행하려면 ERROR(/ExecutorService) 사용하고, 명령 실행을 위해 ERROR(/ExecutorService) 에서 반환된 대로 ERROR(/Future) 에 대한 동기화를 위해 ERROR(/#joinFuture(String,Future,long)) 사용합니다.

요약

중첩 클래스

class DeviceConcurrentUtil.ShellCommandCallable <V>

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

공개 방법

static <T> T joinFuture (String taskDesc, task, long timeout) joinFuture (String taskDesc, task, long timeout)

task 에서 현재 스레드를 조인하는 편리한 방법

실행 중 발생한 DeviceNotAvailableExceptionERROR(/TimeoutException) 투명하게 통과되며, 그 외는 오류로 기록되지만 달리 처리되지 않습니다.

공개 방법

조인미래

public static T joinFuture (String taskDesc, 
                 task, 
                long timeout)

task 에서 현재 스레드를 조인하는 편리한 방법

실행 중 발생한 DeviceNotAvailableExceptionERROR(/TimeoutException) 투명하게 통과되며, 그 외는 오류로 기록되지만 달리 처리되지 않습니다.

매개변수
taskDesc String : 로깅 목적의 작업 설명

task : 참가할 작업을 나타내는 ERROR(/Future)

timeout long : 작업 대기 시간 초과

보고
T 템플릿 유형이 있는 작업의 결과입니다.

던지기
com.android.tradefed.device.DeviceNotAvailableException
시간 초과 예외
DeviceNotAvailableException