DeviceConcurrentUtil
public class DeviceConcurrentUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.DeviceConcurrentUtil |
デバイス側のコマンドを同時に実行するためのユーティリティ メソッドとクラスが含まれています
ERROR(/ExecutorService)
を使用してShellCommandCallable
として実装されたコマンドを実行し、コマンド実行のためにERROR(/ExecutorService)
によって返されるERROR(/Future)
に対する同期にERROR(/#joinFuture(String,Future,long))
使用します。
まとめ
ネストされたクラス | |
---|---|
class | DeviceConcurrentUtil.ShellCommandCallable <V> |
公開メソッド | |
---|---|
static <T> T | joinFuture (String taskDesc, task, long timeout) joinFuture (String taskDesc, task, long timeout) 実行中に発生した |
公開メソッド
参加未来
public static T joinFuture (String taskDesc,task, long timeout)
task
の現在のスレッドに参加するための便利なメソッド
実行中に発生したDeviceNotAvailableException
とERROR(/TimeoutException)
透過的に通過し、それ以外はエラーとしてログに記録されますが、それ以外の場合は処理されません。
パラメーター | |
---|---|
taskDesc | String : ロギング目的のタスクの説明 |
task | ERROR(/Future) |
timeout | long : タスクの待機タイムアウト |
戻り値 | |
---|---|
T | テンプレート タイプのタスクの結果。 |
スロー | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
| TimeoutException |
DeviceNotAvailableException |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2023-03-30 UTC。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]