ParallelDeviceExecutor
public class ParallelDeviceExecutor
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.executor.ParallelDeviceExecutor <V> |
ERROR(/ExecutorService)
包裝器,以並行執行功能。
概要
公共建設者 | |
---|---|
ParallelDeviceExecutor (int poolSize) |
公開方法 | |
---|---|
getErrors () 執行所有任務的錯誤列表。 | |
boolean | hasErrors () 是否發生一些錯誤。 |
invokeAll ( callableTasks, long timeout, TimeUnit unit) invokeAll ( callableTasks, long timeout, TimeUnit unit) 調用所有帶有超時限制的 |
公共建設者
ParallelDeviceExecutor
public ParallelDeviceExecutor (int poolSize)
參量 | |
---|---|
poolSize | int |
公開方法
getErrors
publicgetErrors ()
執行所有任務的錯誤列表。
退貨 | |
---|---|
hasErrors
public boolean hasErrors ()
是否發生一些錯誤。
退貨 | |
---|---|
boolean |
invokeAll
publicinvokeAll ( callableTasks, long timeout, TimeUnit unit)
調用所有帶有超時限制的ERROR(/Callable)
。
參量 | |
---|---|
callableTasks | |
timeout | long :要應用的超時;如果沒有限制,則為零。 |
unit | TimeUnit :超時的單位。 |
退貨 | |
---|---|
每個可調用任務的結果列表。 |