DynamicRemoteFileResolver

public class DynamicRemoteFileResolver
extends Object

java.lang.Object
   ↳ com.android.tradefed.config.DynamicRemoteFileResolver


Class that helps resolving path to remote files.

For example: gs://bucket/path/file.txt will be resolved by downloading the file from the GCS bucket.

Summary

Fields

public static final String DYNAMIC_RESOLVER

Public constructors

DynamicRemoteFileResolver()

Public methods

void setOptionMap( optionMap)

Sets the map of options coming from OptionSetter

final validateRemoteFilePath()

Runs through all the ERROR(/File) option type and check if their path should be resolved.

Protected methods

IRemoteFileResolver getResolver(String protocol)
boolean updateProtocols()

Fields

DYNAMIC_RESOLVER

public static final String DYNAMIC_RESOLVER

Public constructors

DynamicRemoteFileResolver

public DynamicRemoteFileResolver ()

Public methods

setOptionMap

public void setOptionMap ( optionMap)

Sets the map of options coming from OptionSetter

Parameters
optionMap

validateRemoteFilePath

public final  validateRemoteFilePath ()

Runs through all the ERROR(/File) option type and check if their path should be resolved.

Returns
The list of ERROR(/File) that was resolved that way.

Throws
ConfigurationException

Protected methods

getResolver

protected IRemoteFileResolver getResolver (String protocol)

Parameters
protocol String

Returns
IRemoteFileResolver

updateProtocols

protected boolean updateProtocols ()

Returns
boolean