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 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 của lệnh gọi.

void invocationComplete(IInvocationContext context, 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).

void invocationInitiated(IInvocationContext context)

Lệnh gọi lại khi một lệnh gọi được bắt đầu.

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 của lệnh gọi.

Giá trị trả về
InvocationStatus.Status

invocationComplete

public void invocationComplete (IInvocationContext context, 
                 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 bắt đầu. Phương thức này được gọi trước khi tìm nạp bất kỳ bản dựng nào.