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)

タイムアウト制限を使用してすべてのERROR(/Callable)ERROR(/Callable)ます。

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

ParallelDeviceExecutor

public ParallelDeviceExecutor (int poolSize)

パラメーター
poolSize int

パブリックメソッド

getErrors

public  getErrors ()

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

戻り値

hasErrors

public boolean hasErrors ()

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

戻り値
boolean

invokeAll

public  invokeAll ( callableTasks, 
                long timeout, 
                TimeUnit unit)

タイムアウト制限を使用してすべてのERROR(/Callable)ERROR(/Callable)ます。

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

timeout long :適用するタイムアウト、または無制限の場合はゼロ。

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

戻り値
呼び出し可能な各タスクの結果のリスト。