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.

File resolveRemoteFiles(File consideredFile, Option option)

Resolve the remote file.

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

resolveRemoteFiles

public File resolveRemoteFiles (File consideredFile, 
                Option option)

Resolve the remote file.

Parameters
consideredFile File: ERROR(/File) evaluated as remote.

option Option: The original option configuring the file.

Returns
File The resolved local file.

Throws
ConfigurationException

Protected methods

getDownloader

protected GCSDownloaderHelper getDownloader ()

Returns
GCSDownloaderHelper