TracePropagatingExecutorService

public final class TracePropagatingExecutorService
extends Object

java.lang.Object
com.android.tradefed.invoker.tracing.TracePropagatingExecutorService


Một dịch vụ thực thi chuyển tiếp các tác vụ tới một triển khai cơ bản trong khi truyền bối cảnh theo dõi.

Điều này cho phép sử dụng các phương tiện theo dõi như CloseableTraceScope trong các tác vụ đã gửi.

Bản tóm tắt

Phương thức công khai

boolean awaitTermination (long timeout, TimeUnit unit)
static TracePropagatingExecutorService create (ExecutorService delegate)

Tạo một ERROR(/ExecutorService) ủy quyền cho người thực thi ủy quyền đã cho.

void execute (Runnable command)
<T> invokeAll ( tasks, long timeout, TimeUnit unit) invokeAll ( tasks, long timeout, TimeUnit unit)
<T> invokeAll ( tasks) invokeAll ( tasks)
<T> T invokeAny ( tasks) invokeAny ( tasks)
<T> T invokeAny ( tasks, long timeout, TimeUnit unit) invokeAny ( tasks, long timeout, TimeUnit unit)
boolean isShutdown ()
boolean isTerminated ()
void shutdown ()
shutdownNow ()
submit (Runnable task)
<T> submit (Runnable task, T result)
<T> submit ( task) submit ( task)

phương pháp được bảo vệ

<T> wrapTasks ( tasks) wrapTasks ( tasks)

Phương thức công khai

chờchấm dứt

public boolean awaitTermination (long timeout, 
                TimeUnit unit)

Thông số
timeout long

unit TimeUnit

trả lại
boolean

tạo nên

public static TracePropagatingExecutorService create (ExecutorService delegate)

Tạo một ERROR(/ExecutorService) ủy quyền cho người thực thi ủy quyền đã cho.

Lưu ý rằng theo dõi hoạt động được truyền đến các tác vụ là hoạt động theo dõi các cuộc gọi đến phương thức thực thi. Điều này được thực hiện bởi vì TF xây dựng hầu hết các đối tượng trước khi bắt đầu gọi và đính kèm dấu vết.

Thông số
delegate ExecutorService

trả lại
TracePropagatingExecutorService

hành hình

public void execute (Runnable command)

Thông số
command Runnable

gọi tất cả

public  invokeAll ( tasks, 
                long timeout, 
                TimeUnit unit)

Thông số
tasks

timeout long

unit TimeUnit

trả lại

gọi tất cả

public  invokeAll ( tasks)

Thông số
tasks

trả lại

gọi bất kỳ

public T invokeAny ( tasks)

Thông số
tasks

trả lại
T

gọi bất kỳ

public T invokeAny ( tasks, 
                long timeout, 
                TimeUnit unit)

Thông số
tasks

timeout long

unit TimeUnit

trả lại
T

isShutdown

public boolean isShutdown ()

trả lại
boolean

Bị chấm dứt

public boolean isTerminated ()

trả lại
boolean

tắt

public void shutdown ()

tắt máy

public  shutdownNow ()

trả lại

nộp

public  submit (Runnable task)

Thông số
task Runnable

trả lại

nộp

public  submit (Runnable task, 
                T result)

Thông số
task Runnable

result T

trả lại

nộp

public  submit ( task)

Thông số
task

trả lại

phương pháp được bảo vệ

bọcT task

protected  wrapTasks ( tasks)

Thông số
tasks

trả lại