ParallelDeviceExecutor

public class ParallelDeviceExecutor
extends Object

java.lang.オブジェクト
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)を呼び出します。

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

ParallelDeviceExecutor

public ParallelDeviceExecutor (int poolSize)

パラメーター
poolSize int

パブリックメソッド

getErrors

public  getErrors ()

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

戻り値

エラーあり

public boolean hasErrors ()

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

戻り値
boolean

すべてを呼び出す

public  invokeAll ( callableTasks, 
                long timeout, 
                TimeUnit unit)

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

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

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

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

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