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 :超时的单位。 |
退货 | |
---|---|
每个可调用任务的结果列表。 |