Tệp mở rộng
public
class
ExtendedFile
extends Object
java.lang.Object | |
↳ | com.android.tradefed.config.remote.ExtendedFile |
Một phần mở rộng của tệp tiêu chuẩn để chứa siêu dữ liệu liên quan đến bản dựng.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
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)
|
Phương thức công khai | |
---|---|
void
|
cancelDownload()
|
String
|
getBranch()
Trả về siêu dữ liệu nhánh. |
String
|
getBuildId()
Trả về siêu dữ liệu bản dựng. |
String
|
getBuildTarget()
Trả về siêu dữ liệu mục tiêu. |
String
|
getRemoteFilePath()
Trả về siêu dữ liệu đường dẫn tệp từ xa. |
boolean
|
isDoneDownloadingInParallel()
|
boolean
|
isDownloadingInParallel()
|
void
|
setDownloadFuture(ExecutorService serviceUsed,
|
void
|
setDownloadFuture(
|
void
|
waitForDownload()
|
Hàm khởi tạo công khai
Tệp mở rộng
public ExtendedFile (File file, String buildId, String buildTarget)
Tham số | |
---|---|
file |
File |
buildId |
String |
buildTarget |
String |
Tệp mở rộng
public ExtendedFile (File file, String buildId, String buildTarget, String branch)
Tham số | |
---|---|
file |
File |
buildId |
String |
buildTarget |
String |
branch |
String |
Tệp mở rộng
public ExtendedFile (File file, String buildId, String buildTarget, String branch, String remoteFilePath)
Tham số | |
---|---|
file |
File |
buildId |
String |
buildTarget |
String |
branch |
String |
remoteFilePath |
String |
Phương thức công khai
huỷTải xuống
public void cancelDownload ()
getBranch
public String getBranch ()
Trả về siêu dữ liệu nhánh.
Giá trị trả về | |
---|---|
String |
getBuildId
public String getBuildId ()
Trả về siêu dữ liệu bản dựng.
Giá trị trả về | |
---|---|
String |
getBuildTarget
public String getBuildTarget ()
Trả về siêu dữ liệu mục tiêu.
Giá trị trả về | |
---|---|
String |
getRemoteFilePath
public String getRemoteFilePath ()
Trả về siêu dữ liệu đường dẫn tệp từ xa.
Giá trị trả về | |
---|---|
String |
Tải xuống trong song song xong
public boolean isDoneDownloadingInParallel ()
Giá trị trả về | |
---|---|
boolean |
đang tải xuốngTrong song song
public boolean isDownloadingInParallel ()
Giá trị trả về | |
---|---|
boolean |
setDownloadFuture
public void setDownloadFuture (ExecutorService serviceUsed,download)
Tham số | |
---|---|
serviceUsed |
ExecutorService |
download |
|
setDownloadFuture
public void setDownloadFuture (download)
Tham số | |
---|---|
download |
|