ExistingBuildProvider

public class ExistingBuildProvider
extends Object implements IBuildProvider

java.lang.Object
   ↳ com.android.tradefed.build.ExistingBuildProvider


A IBuildProvider that returns an already constructed IBuildInfo.

Summary

Public constructors

ExistingBuildProvider(IBuildInfo buildInfo, IBuildProvider parentProvider)

Creates a ExistingBuildProvider.

Public methods

void buildNotTested(IBuildInfo info)

Mark the given build as untested.

void cleanUp(IBuildInfo info)

Clean up any temporary build files.

IBuildInfo getBuild()

Retrieve the data for build under test.

Public constructors

ExistingBuildProvider

public ExistingBuildProvider (IBuildInfo buildInfo, 
                IBuildProvider parentProvider)

Creates a ExistingBuildProvider.

Parameters
buildInfo IBuildInfo: the existing build to provide

parentProvider IBuildProvider: the original IBuildProvider that created the IBuildInfo Needed to pass along IBuildProvider#buildNotTested(IBuildInfo) events.

Public methods

buildNotTested

public void buildNotTested (IBuildInfo info)

Mark the given build as untested.

Called in cases where TradeFederation has failed to complete testing on the build due to an environment problem.

Parameters
info IBuildInfo: the IBuildInfo to reset

cleanUp

public void cleanUp (IBuildInfo info)

Clean up any temporary build files.

Parameters
info IBuildInfo

getBuild

public IBuildInfo getBuild ()

Retrieve the data for build under test.

Returns
IBuildInfo the IBuildInfo for build under test or null if no build is available for testing

Throws
BuildRetrievalError