IHostResourceManager

public interface IHostResourceManager

com.android.tradefed.host.IHostResourceManager


Interface to manager host resource.

Summary

Public methods

abstract void cleanup()

Clean up host resources.

abstract File getFile(String name)

Get host resource local file by the resource id.

abstract void setup()

Set up host resources.

Public methods

cleanup

public abstract void cleanup ()

Clean up host resources.

getFile

public abstract File getFile (String name)

Get host resource local file by the resource id.

Parameters
name String: the resource id of the host resource.

Returns
File The local file of the host resource.

setup

public abstract void setup ()

Set up host resources. Host resources might come from different places, remote on cloud or local files. This interface provides a unified way for tradefed to get the host resource it needs. setup should properly download files to local and later tradefed can get the local by the host resource name through getFile.

Throws
ConfigurationException