ExtendedFile

public class ExtendedFile
extends File

java.lang.Object
   ↳ java.io.File
     ↳ 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, Future<BuildRetrievalError> download)
void setDownloadFuture(Future<BuildRetrievalError> 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 ()

傳回建構 ID 中繼資料。

傳回
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, 
                Future<BuildRetrievalError> download)

參數
serviceUsed ExecutorService

download Future

setDownloadFuture

public void setDownloadFuture (Future<BuildRetrievalError> download)

參數
download Future

waitForDownload

public void waitForDownload ()

擲回
BuildRetrievalError