2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ParallelDeviceExecutor
public
class
ParallelDeviceExecutor
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.executor.ParallelDeviceExecutor<V>
|
関数を並列で実行する ERROR(/ExecutorService)
のラッパ。
概要
パブリック コンストラクタ
ParallelDeviceExecutor
public ParallelDeviceExecutor (int poolSize)
パブリック メソッド
getErrors
public getErrors ()
すべてのタスクの実行で発生したエラーのリスト。
hasErrors
public boolean hasErrors ()
エラーが発生したかどうか。
invokeAll
public invokeAll ( callableTasks,
long timeout,
TimeUnit unit)
タイムアウトの上限を指定してすべての ERROR(/Callable)
を呼び出します。
パラメータ |
callableTasks |
: タスクのリスト。 |
timeout |
long : 適用するタイムアウト。無制限の場合は 0 にします。 |
unit |
TimeUnit : タイムアウトの単位。 |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-27 UTC。"],[],[],null,["# ParallelDeviceExecutor\n======================\n\n\n`\npublic\n\n\nclass\nParallelDeviceExecutor\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.executor.ParallelDeviceExecutor\\\u003cV\\\u003e |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nWrapper of [ERROR(/ExecutorService)](../../../../../../../) to execute a function in parallel.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ParallelDeviceExecutor](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#ParallelDeviceExecutor(int))`(int poolSize) ` |\n\n| ### Public methods ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` ` | ` `[getErrors](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#getErrors())`() ` The list of errors from the execution of all tasks. |\n| ` boolean` | ` `[hasErrors](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#hasErrors())`() ` Whether or not some errors occurred or not. |\n| ` ` | ` `[invokeAll](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#invokeAll(\u003cany\u003e,%20long,%20TimeUnit))`(` callableTasks, long timeout, TimeUnit unit) Invoke all the [ERROR(/Callable)](../../../../../../../) with the timeout limit. |\n\nPublic constructors\n-------------------\n\n### ParallelDeviceExecutor\n\n```\npublic ParallelDeviceExecutor (int poolSize)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------|\n| `poolSize` | `int` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getErrors\n\n```\npublic getErrors ()\n```\n\nThe list of errors from the execution of all tasks.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### hasErrors\n\n```\npublic boolean hasErrors ()\n```\n\nWhether or not some errors occurred or not.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### invokeAll\n\n```\npublic invokeAll ( callableTasks, \n long timeout, \n TimeUnit unit)\n```\n\nInvoke all the [ERROR(/Callable)](../../../../../../../) with the timeout limit.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|-------------------------------------------------------------|\n| `callableTasks` | : The List of tasks. \u003cbr /\u003e |\n| `timeout` | `long`: The timeout to apply, or zero for unlimited. \u003cbr /\u003e |\n| `unit` | `TimeUnit`: The unit of the timeout. \u003cbr /\u003e |\n\n| Returns ||\n|---|----------------------------------------------------|\n| | The list of results for each callable task. \u003cbr /\u003e |"]]