ExecCommandTracker

class ExecCommandTracker
extends Object implements ICommandScheduler.IScheduledInvocationListener

java.lang.Object
   ↳ com.android.tradefed.command.remote.ExecCommandTracker


Summary

Public methods

void invocationComplete(IInvocationContext metadata, Map<ITestDevice, FreeDeviceState> devicesStates)

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

void invocationFailed(Throwable cause)

Reports an incomplete invocation due to some error condition.

void testRunEnded(long elapsedTime, HashMap<String, MetricMeasurement.Metric> runMetrics)

Reports end of test run.

Public methods

invocationComplete

public void invocationComplete (IInvocationContext metadata, 
                Map<ITestDevice, FreeDeviceState> devicesStates)

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

invocationFailed

public void invocationFailed (Throwable cause)

Reports an incomplete invocation due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
cause Throwable: the Throwable cause of the failure

testRunEnded

public void testRunEnded (long elapsedTime, 
                HashMap<String, MetricMeasurement.Metric> runMetrics)

Reports end of test run. FIXME: We cannot have two Map<> interfaces with different type, so we have to use HashMap here.

Parameters
elapsedTime long: device reported elapsed time, in milliseconds

runMetrics HashMap: key-value pairs reported at the end of a test run with MetricMeasurement.Metric.