ExtendedFile

public class ExtendedFile
extends Object

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


A extension of standard file to carry a build related metadata.

Summary

Public constructors

ExtendedFile(File file, String buildId, String buildTarget)
ExtendedFile(File file, String buildId, String buildTarget, String branch)
ExtendedFile(File file, String buildId, String buildTarget, String branch, String remoteFilePath)

Public methods

void cancelDownload()
String getBranch()

Returns the branch metadata.

String getBuildId()

Returns the buildid metadata.

String getBuildTarget()

Returns the target metadata.

String getRemoteFilePath()

Returns the remote file path metadata.

boolean isDoneDownloadingInParallel()
boolean isDownloadingInParallel()
void setDownloadFuture(ExecutorService serviceUsed, download)
void setDownloadFuture( download)
void waitForDownload()

Public constructors

ExtendedFile

public ExtendedFile (File file, 
                String buildId, 
                String buildTarget)

Parameters
file File

buildId String

buildTarget String

ExtendedFile

public ExtendedFile (File file, 
                String buildId, 
                String buildTarget, 
                String branch)

Parameters
file File

buildId String

buildTarget String

branch String

ExtendedFile

public ExtendedFile (File file, 
                String buildId, 
                String buildTarget, 
                String branch, 
                String remoteFilePath)

Parameters
file File

buildId String

buildTarget String

branch String

remoteFilePath String

Public methods

cancelDownload

public void cancelDownload ()

getBranch

public String getBranch ()

Returns the branch metadata.

Returns
String

getBuildId

public String getBuildId ()

Returns the buildid metadata.

Returns
String

getBuildTarget

public String getBuildTarget ()

Returns the target metadata.

Returns
String

getRemoteFilePath

public String getRemoteFilePath ()

Returns the remote file path metadata.

Returns
String

isDoneDownloadingInParallel

public boolean isDoneDownloadingInParallel ()

Returns
boolean

isDownloadingInParallel

public boolean isDownloadingInParallel ()

Returns
boolean

setDownloadFuture

public void setDownloadFuture (ExecutorService serviceUsed, 
                 download)

Parameters
serviceUsed ExecutorService

download

setDownloadFuture

public void setDownloadFuture ( download)

Parameters
download

waitForDownload

public void waitForDownload ()

Throws
BuildRetrievalError