DeviceConcurrentUtil
public class DeviceConcurrentUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil |
동시 장치 측 명령 실행을위한 유틸리티 메소드 및 클래스 포함
ShellCommandCallable
구현 된 명령을 실행하려면 ERROR(/ExecutorService)
를 사용하고 명령 실행을 위해 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) 실행 중에 발생한 |
공개 방법
joinFuture
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.