TracePropagatingExecutorService
public
final
class
TracePropagatingExecutorService
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.invoker.tracing.TracePropagatingExecutorService |
トレース コンテキストを伝播しながら、タスクを基盤となる実装に転送するエグゼキュータ サービス。
これにより、送信されたタスクで CloseableTraceScope などのトレース機能を使用できるようになります。
概要
パブリック メソッド | |
|---|---|
boolean
|
awaitTermination(long timeout, TimeUnit unit)
|
static
TracePropagatingExecutorService
|
create(ExecutorService delegate)
指定されたデリゲート エグゼキュータを委任する |
void
|
execute(Runnable command)
|
<T>
|
invokeAll(
|
<T>
|
invokeAll(
|
<T>
T
|
invokeAny(
|
<T>
T
|
invokeAny(
|
boolean
|
isShutdown()
|
boolean
|
isTerminated()
|
void
|
shutdown()
|
|
shutdownNow()
|
|
submit(Runnable task)
|
<T>
|
submit(Runnable task, T result)
|
<T>
|
submit(
|
保護されたメソッド | |
|---|---|
<T>
|
wrapTasks(
|
パブリック メソッド
awaitTermination
public boolean awaitTermination (long timeout,
TimeUnit unit)| パラメータ | |
|---|---|
timeout |
long |
unit |
TimeUnit |
| 戻り値 | |
|---|---|
boolean |
|
create
public static TracePropagatingExecutorService create (ExecutorService delegate)
指定されたデリゲート エグゼキュータを委任する ERROR(/ExecutorService) を作成します。
タスクに伝播されるアクティブなトレースオンは、エグゼキュータ メソッドの呼び出しでアクティブなトレースオンです。これは、TF が呼び出しを開始してトレースをアタッチする前に、ほとんどのオブジェクトを構築するためです。
| パラメータ | |
|---|---|
delegate |
ExecutorService |
| 戻り値 | |
|---|---|
TracePropagatingExecutorService |
|
execute
public void execute (Runnable command)
| パラメータ | |
|---|---|
command |
Runnable |
invokeAll
publicinvokeAll ( tasks, long timeout, TimeUnit unit)
| パラメータ | |
|---|---|
tasks |
|
timeout |
long |
unit |
TimeUnit |
| 戻り値 | |
|---|---|
|
|
invokeAll
publicinvokeAll ( tasks)
| パラメータ | |
|---|---|
tasks |
|
| 戻り値 | |
|---|---|
|
|
invokeAny
public T invokeAny (tasks)
| パラメータ | |
|---|---|
tasks |
|
| 戻り値 | |
|---|---|
T |
|
invokeAny
public T invokeAny (tasks, long timeout, TimeUnit unit)
| パラメータ | |
|---|---|
tasks |
|
timeout |
long |
unit |
TimeUnit |
| 戻り値 | |
|---|---|
T |
|
isShutdown
public boolean isShutdown ()
| 戻り値 | |
|---|---|
boolean |
|
isTerminated
public boolean isTerminated ()
| 戻り値 | |
|---|---|
boolean |
|
シャットダウン
public void shutdown ()
shutdownNow
publicshutdownNow ()
| 戻り値 | |
|---|---|
|
|
送信
publicsubmit (Runnable task)
| パラメータ | |
|---|---|
task |
Runnable |
| 戻り値 | |
|---|---|
|
|
送信
publicsubmit (Runnable task, T result)
| パラメータ | |
|---|---|
task |
Runnable |
result |
T |
| 戻り値 | |
|---|---|
|
|
送信
publicsubmit ( task)
| パラメータ | |
|---|---|
task |
|
| 戻り値 | |
|---|---|
|
|
保護されたメソッド
wrapTasks
protectedwrapTasks ( tasks)
| パラメータ | |
|---|---|
tasks |
|
| 戻り値 | |
|---|---|
|
|