GcsRemoteFileResolver

public class GcsRemoteFileResolver
extends Object implements IRemoteFileResolver

java.lang.Object
   ↳ com.android.tradefed.config.remote.GcsRemoteFileResolver


Implementation of IRemoteFileResolver that allows downloading from a GCS bucket.

Summary

Fields

public static final String PROTOCOL

Public constructors

GcsRemoteFileResolver()

Public methods

String getSupportedProtocol()

Returns the associated protocol supported for download.

IRemoteFileResolver.ResolvedFile resolveRemoteFile(IRemoteFileResolver.RemoteFileResolverArgs args)

Resolve the remote file in a future-proof interface

Protected methods

GCSDownloaderHelper getDownloader()

Fields

PROTOCOL

public static final String PROTOCOL

Public constructors

GcsRemoteFileResolver

public GcsRemoteFileResolver ()

Public methods

getSupportedProtocol

public String getSupportedProtocol ()

Returns the associated protocol supported for download.

Returns
String

resolveRemoteFile

public IRemoteFileResolver.ResolvedFile resolveRemoteFile (IRemoteFileResolver.RemoteFileResolverArgs args)

Resolve the remote file in a future-proof interface

Parameters
args IRemoteFileResolver.RemoteFileResolverArgs: RemoteFileResolverArgs describing the remote to download and how.

Returns
IRemoteFileResolver.ResolvedFile The resolved local file representation.

Throws
BuildRetrievalError

Protected methods

getDownloader

protected GCSDownloaderHelper getDownloader ()

Returns
GCSDownloaderHelper