ContentInformationCache

public class ContentInformationCache
extends Object

java.lang.Object
   ↳ com.google.android.tradefed.build.content.ContentInformationCache


Cache ContentInformation and ensures the lifecycle of the files related to it.

Summary

Protected constructors

ContentInformationCache()

Public methods

ContentInformation getContentInformation(String branch, String buildId, String buildFlavor)

Retrieve a ContentInformation based on its origin.

static ContentInformationCache getDefaultCache()
void trackContent(String branch, String buildId, String buildFlavor, ContentInformation contentInfo)

Track a ContentInformation based on its origin.

Protected constructors

ContentInformationCache

protected ContentInformationCache ()

Public methods

getContentInformation

public ContentInformation getContentInformation (String branch, 
                String buildId, 
                String buildFlavor)

Retrieve a ContentInformation based on its origin.

Parameters
branch String

buildId String

buildFlavor String

Returns
ContentInformation

getDefaultCache

public static ContentInformationCache getDefaultCache ()

Returns
ContentInformationCache

trackContent

public void trackContent (String branch, 
                String buildId, 
                String buildFlavor, 
                ContentInformation contentInfo)

Track a ContentInformation based on its origin.

Parameters
branch String

buildId String

buildFlavor String

contentInfo ContentInformation

Throws
IOException