并行设备执行器

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)

使用超时限制调用所有ERROR(/Callable)

公共构造函数

并行设备执行器

public ParallelDeviceExecutor (int poolSize)

参数
poolSize int

公共方法

得到错误

public  getErrors ()

执行所有任务的错误列表。

退货

有错误

public boolean hasErrors ()

是否发生某些错误。

退货
boolean

全部调用

public  invokeAll ( callableTasks, 
                long timeout, 
                TimeUnit unit)

使用超时限制调用所有ERROR(/Callable)

参数
callableTasks :任务列表。

timeout long :应用超时,或零表示无限制。

unit TimeUnit :超时的单位。

退货
每个可调用任务的结果列表。