to top
public class

FileDownloadCacheFactory

extends Object
java.lang.Object
   ↳ com.android.tradefed.build.FileDownloadCacheFactory

Class Overview

A factory for creating FileDownloadCache

Summary

Public Constructors
FileDownloadCacheFactory()
Public Methods
synchronized FileDownloadCache getCache(File cacheDir)
Retrieve the FileDownloadCache with the given cache directory, creating if necessary.
static FileDownloadCacheFactory getInstance()
Get the singleton instance of FileDownloadCacheFactory
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FileDownloadCacheFactory ()

Public Methods

public synchronized FileDownloadCache getCache (File cacheDir)

Retrieve the FileDownloadCache with the given cache directory, creating if necessary.

Note that the cache assumes that this process has exclusive access to the cacheDir directory. If multiple TF processes will be run on the same machine, they MUST each use unique cache directories.

Parameters
cacheDir the local filesystem directory to use as a cache
Returns

public static FileDownloadCacheFactory getInstance ()

Get the singleton instance of FileDownloadCacheFactory