ExtendedFile

public class ExtendedFile
extends Object

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


標準檔案的副檔名,用於攜帶與建構相關的中繼資料。

摘要

公用建構函式

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)

公用方法

void cancelDownload()
String getBranch()

傳回分支版本的結構描述。

String getBuildId()

傳回 buildid 中繼資料。

String getBuildTarget()

傳回目標中繼資料。

String getRemoteFilePath()

傳回遠端檔案路徑中繼資料。

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

公用建構函式

ExtendedFile

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

參數
file File

buildId String

buildTarget String

ExtendedFile

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

參數
file File

buildId String

buildTarget String

branch String

ExtendedFile

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

參數
file File

buildId String

buildTarget String

branch String

remoteFilePath String

公用方法

cancelDownload

public void cancelDownload ()

getBranch

public String getBranch ()

傳回分支中繼資料。

傳回
String

getBuildId

public String getBuildId ()

傳回 buildid 中繼資料。

傳回
String

getBuildTarget

public String getBuildTarget ()

傳回目標中繼資料。

傳回
String

getRemoteFilePath

public String getRemoteFilePath ()

傳回遠端檔案路徑中繼資料。

傳回
String

isDoneDownloadingInParallel

public boolean isDoneDownloadingInParallel ()

傳回
boolean

isDownloadingInParallel

public boolean isDownloadingInParallel ()

傳回
boolean

setDownloadFuture

public void setDownloadFuture (ExecutorService serviceUsed, 
                 download)

參數
serviceUsed ExecutorService

download

setDownloadFuture

public void setDownloadFuture ( download)

參數
download

waitForDownload

public void waitForDownload ()

擲回
BuildRetrievalError