CommandStatusHandler

public class CommandStatusHandler
extends Object implements ICommandScheduler.IScheduledInvocationListener

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


Handler helping to monitor and update the status of an invocation.

Summary

Public constructors

CommandStatusHandler()

Public methods

InvocationStatus.Status getCurrentStatus()

Returns the currently known status of the invocation.

void invocationComplete(IInvocationContext context, devicesStates)

Callback when entire invocation has completed, including all ITestInvocationListener.invocationEnded(long) events.

void invocationInitiated(IInvocationContext context)

Callback when an invocation is initiated.

Public constructors

CommandStatusHandler

public CommandStatusHandler ()

Public methods

getCurrentStatus

public InvocationStatus.Status getCurrentStatus ()

Returns the currently known status of the invocation.

Returns
InvocationStatus.Status

invocationComplete

public void invocationComplete (IInvocationContext context, 
                 devicesStates)

Callback when entire invocation has completed, including all ITestInvocationListener.invocationEnded(long) events.

invocationInitiated

public void invocationInitiated (IInvocationContext context)

Callback when an invocation is initiated. This is called before any builds are fetched.