ParallelDeviceExecutor

public class ParallelDeviceExecutor
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.executor.ParallelDeviceExecutor<V>


関数を並列に実行する ExecutorService のラッパー。

概要

パブリック コンストラクタ

ParallelDeviceExecutor(int poolSize)

パブリック メソッド

List<Throwable> getErrors()

すべてのタスクの実行によるエラーのリスト。

boolean hasErrors()

エラーが発生したかどうか。

List<V> invokeAll(List<Callable<V>> callableTasks, long timeout, TimeUnit unit)

タイムアウトの制限付きで、すべての Callable を呼び出します。

パブリック コンストラクタ

ParallelDeviceExecutor

public ParallelDeviceExecutor (int poolSize)

パラメータ
poolSize int

パブリック メソッド

getErrors

public List<Throwable> getErrors ()

すべてのタスクの実行によるエラーのリスト。

戻り値
List<Throwable>

hasErrors

public boolean hasErrors ()

エラーが発生したかどうか。

戻り値
boolean

invokeAll

public List<V> invokeAll (List<Callable<V>> callableTasks, 
                long timeout, 
                TimeUnit unit)

タイムアウトの上限ですべての Callable を呼び出します。

パラメータ
callableTasks List: タスクのリスト。

timeout long: 適用するタイムアウト(無制限の場合は 0)。

unit TimeUnit: タイムアウトの単位。

戻り値
List<V> 呼び出し可能なタスクごとの結果のリスト。