IRemoteFileResolver

public interface IRemoteFileResolver

com.android.tradefed.config.remote.IRemoteFileResolver


Interface for objects that can resolve a remote file into a local one. For example: gs://bucket/dir/file.txt would be downloaded and changed to a local path.

Summary

Public methods

abstract String getSupportedProtocol()

Returns the associated protocol supported for download.

abstract File resolveRemoteFiles(File consideredFile, Option option)

Resolve the remote file.

Public methods

getSupportedProtocol

public abstract String getSupportedProtocol ()

Returns the associated protocol supported for download.

Returns
String

resolveRemoteFiles

public abstract 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 if something goes wrong.