CommandStatusHandler

public class CommandStatusHandler
extends Object implements ICommandScheduler.IScheduledInvocationListener

java.lang.Object
   ↳ com.android.tradefed.service.management.CommandStatusHandler


處理常式,可協助監控及更新叫用狀態。

摘要

公用建構函式

CommandStatusHandler()

公用方法

InvocationStatus.Status getCurrentStatus()

傳回目前已知的叫用狀態。

void invocationComplete(IInvocationContext context, Map<ITestDeviceFreeDeviceState> devicesStates)

整個叫用程序完成時的回呼,包括所有 ITestInvocationListener.invocationEnded(long) 事件。

void invocationInitiated(IInvocationContext context)

啟動叫用時的回呼。

公用建構函式

CommandStatusHandler

public CommandStatusHandler ()

公用方法

getCurrentStatus

public InvocationStatus.Status getCurrentStatus ()

傳回目前已知的叫用狀態。

傳回
InvocationStatus.Status

invocationComplete

public void invocationComplete (IInvocationContext context, 
                Map<ITestDeviceFreeDeviceState> devicesStates)

整個叫用程序完成時的回呼,包括所有 ITestInvocationListener.invocationEnded(long) 事件。

invocationInitiated

public void invocationInitiated (IInvocationContext context)

啟動呼叫時的回呼。系統會在擷取任何建構作業前呼叫這個方法。