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, devicesStates)

整个调用(包括所有 ITestInvocationListener.invocationEnded(long) 事件)完成时的回调。

void invocationInitiated(IInvocationContext context)

发起调用时的回调。

公共构造函数

CommandStatusHandler

public CommandStatusHandler ()

公共方法

getCurrentStatus

public InvocationStatus.Status getCurrentStatus ()

返回调用的当前已知状态。

返回
InvocationStatus.Status

invocationComplete

public void invocationComplete (IInvocationContext context, 
                 devicesStates)

整个调用(包括所有 ITestInvocationListener.invocationEnded(long) 事件)完成时的回调。

invocationInitiated

public void invocationInitiated (IInvocationContext context)

在发起调用时执行的回调。系统会在提取任何 build 之前调用此方法。