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> |
공개 방법 | |
---|---|
static <T> T | joinFuture (String taskDesc, task, long timeout) joinFuture (String taskDesc, task, long timeout) 실행 중 발생한 |
공개 방법
조인미래
public static T joinFuture (String taskDesc,task, long timeout)
task
에서 현재 스레드를 조인하는 편리한 방법
실행 중 발생한 DeviceNotAvailableException
및 ERROR(/TimeoutException)
투명하게 통과되며, 그 외는 오류로 기록되지만 달리 처리되지 않습니다.
매개변수 | |
---|---|
taskDesc | String : 로깅 목적의 작업 설명 |
task | ERROR(/Future) |
timeout | long : 작업 대기 시간 초과 |
보고 | |
---|---|
T | 템플릿 유형이 있는 작업의 결과입니다. |
던지기 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
| 시간 초과 예외 |
DeviceNotAvailableException |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-03-30(UTC)
[]
[]