CommandStatusHandler
public
class
CommandStatusHandler
extends Object
implements
ICommandScheduler.IScheduledInvocationListener
| java.lang.Object | |
| ↳ | com.android.tradefed.service.management.CommandStatusHandler |
Trình xử lý giúp theo dõi và cập nhật trạng thái của một lệnh gọi.
Tóm tắt
Hàm khởi tạo công khai | |
|---|---|
CommandStatusHandler()
|
|
Phương thức công khai | |
|---|---|
InvocationStatus.Status
|
getCurrentStatus()
Trả về trạng thái hiện tại đã biết của lệnh gọi. |
void
|
invocationComplete(IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates)
Lệnh gọi lại khi toàn bộ lệnh gọi đã hoàn tất, bao gồm cả tất cả sự kiện |
void
|
invocationInitiated(IInvocationContext context)
Lệnh gọi lại khi một lệnh gọi được khởi tạo. |
Hàm khởi tạo công khai
CommandStatusHandler
public CommandStatusHandler ()
Phương thức công khai
getCurrentStatus
public InvocationStatus.Status getCurrentStatus ()
Trả về trạng thái hiện tại đã biết của lệnh gọi.
| Giá trị trả về | |
|---|---|
InvocationStatus.Status |
|
invocationComplete
public void invocationComplete (IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates)
Lệnh gọi lại khi toàn bộ lệnh gọi đã hoàn tất, bao gồm cả tất cả sự kiện ITestInvocationListener.invocationEnded(long).
invocationInitiated
public void invocationInitiated (IInvocationContext context)
Lệnh gọi lại khi một lệnh gọi được khởi tạo. Lệnh này được gọi trước khi tìm nạp bất kỳ bản dựng nào.