SandboxedInvocationExecution

public class SandboxedInvocationExecution
extends InvocationExecution

java.lang.Object
   ↳ com.android.tradefed.invoker.InvocationExecution
     ↳ com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution


Special sandbox execution of the invocation: This is the InvocationExection for when we are inside the sandbox running the command. The build should already be available in the context.

Summary

Public constructors

SandboxedInvocationExecution()

Public methods

boolean fetchBuild(IInvocationContext context, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)

Execute the build_provider step of the invocation.

boolean resetBuildAndReschedule(Throwable exception, ITestInvocationListener listener, IConfiguration config, IInvocationContext context)

Report a failure for the invocation.

Public constructors

SandboxedInvocationExecution

public SandboxedInvocationExecution ()

Public methods

fetchBuild

public boolean fetchBuild (IInvocationContext context, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener listener)

Execute the build_provider step of the invocation.

Parameters
context IInvocationContext: the IInvocationContext of the invocation.

config IConfiguration: the IConfiguration of this test run.

rescheduler IRescheduler: the IRescheduler, for rescheduling portions of the invocation for execution on another resource(s)

listener ITestInvocationListener: the ERROR(/ITestInvocation) to report build download failures.

Returns
boolean True if we successfully downloaded the build, false otherwise.

Throws
DeviceNotAvailableException
BuildRetrievalError

resetBuildAndReschedule

public boolean resetBuildAndReschedule (Throwable exception, 
                ITestInvocationListener listener, 
                IConfiguration config, 
                IInvocationContext context)

Report a failure for the invocation.

Parameters
exception Throwable: The exception that should be reported.

listener ITestInvocationListener: The invocation listener.

config IConfiguration: The configuration currently running.

context IInvocationContext: The IInvocationContext of the invocation.

Returns
boolean True if the configuration should be rescheduled, False otherwise.