GCSDownloaderHelper

public class GCSDownloaderHelper
extends Object

java.lang.Object
   ↳ com.android.tradefed.build.gcs.GCSDownloaderHelper


Downloader for GCS bucket that takes care of caching and resolving the global config.

Summary

Public constructors

GCSDownloaderHelper()

Public methods

void fetchTestResource(File destFile, String gsPath)

Fetch the resource from the GS path.

File fetchTestResource(String gsPath)

Fetch the resource from the GS path.

Public constructors

GCSDownloaderHelper

public GCSDownloaderHelper ()

Public methods

fetchTestResource

public void fetchTestResource (File destFile, 
                String gsPath)

Fetch the resource from the GS path.

Parameters
destFile File: The ERROR(/File) pointing to the retrieved resource.

gsPath String: the path where the resource is located. For example: gs://bucket/path/file

Throws
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError

fetchTestResource

public File fetchTestResource (String gsPath)

Fetch the resource from the GS path.

Parameters
gsPath String: the path where the resource is located. For example: gs://bucket/path/file

Returns
File The ERROR(/File) pointing to the retrieved resource.

Throws
com.android.tradefed.build.BuildRetrievalError
BuildRetrievalError