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(
使用超时限制调用所有 |
公共构造函数
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:超时单位。 |
| 返回 | |
|---|---|
|
每个可调用任务的结果列表。 |