并行设备执行器

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 :超时的单位。

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