IRemoteFileResolver

public interface IRemoteFileResolver

com.android.tradefed.config.remote.IRemoteFileResolver


Giao diện dành cho các đối tượng có thể phân giải tệp từ xa thành tệp cục bộ. Ví dụ: gs://bucket/dir/file.txt sẽ được tải xuống và thay đổi thành đường dẫn cục bộ.

Bản tóm tắt

Các lớp lồng nhau

class IRemoteFileResolver.RemoteFileResolverArgs

Các đối số được chuyển đến người giải quyết

class IRemoteFileResolver.ResolvedFile

Lớp chứa thông tin về tệp đã giải quyết và một số siêu dữ liệu.

Phương pháp công cộng

abstract String getSupportedProtocol ()

Trả về giao thức liên quan được hỗ trợ để tải xuống.

default IRemoteFileResolver.ResolvedFile resolveRemoteFile ( IRemoteFileResolver.RemoteFileResolverArgs args)

Giải quyết tệp từ xa trong giao diện phù hợp với tương lai

default File resolveRemoteFiles (File consideredFile)

Giải quyết tập tin từ xa.

default File resolveRemoteFiles (File consideredFile, queryArgs) resolveRemoteFiles (File consideredFile, queryArgs)

Giải quyết tập tin từ xa.

default void setPrimaryDevice ( ITestDevice device)

Cách tùy chọn để quá trình triển khai nhận được bản trình bày {@ink ITestDevice} của thiết bị đang được thử nghiệm.

Phương pháp công cộng

getHỗ trợGiao thức

public abstract String getSupportedProtocol ()

Trả về giao thức liên quan được hỗ trợ để tải xuống.

Trả lại
String

giải quyếtRemoteFile

public IRemoteFileResolver.ResolvedFile resolveRemoteFile (IRemoteFileResolver.RemoteFileResolverArgs args)

Giải quyết tệp từ xa trong giao diện phù hợp với tương lai

Thông số
args IRemoteFileResolver.RemoteFileResolverArgs : RemoteFileResolverArgs mô tả điều khiển từ xa để tải xuống và cách thực hiện.

Trả lại
IRemoteFileResolver.ResolvedFile Biểu diễn tệp cục bộ đã được giải quyết.

Ném
BuildRetrievalError Nếu có điều gì sai.

giải quyếtRemoteFiles

public File resolveRemoteFiles (File consideredFile)

Giải quyết tập tin từ xa.

Thông số
consideredFile File : ERROR(/File) được đánh giá là từ xa.

Trả lại
File Tệp cục bộ đã được giải quyết.

Ném
BuildRetrievalError Nếu có điều gì sai.

giải quyếtRemoteFiles

public File resolveRemoteFiles (File consideredFile, 
                 queryArgs)

Giải quyết tập tin từ xa.

Thông số
consideredFile File : ERROR(/File) được đánh giá là từ xa.

queryArgs : Các đối số được truyền dưới dạng truy vấn tới URL.

Trả lại
File Tệp cục bộ đã được giải quyết.

Ném
BuildRetrievalError Nếu có điều gì sai.

setPrimaryDevice

public void setPrimaryDevice (ITestDevice device)

Cách tùy chọn để quá trình triển khai nhận được bản trình bày {@ink ITestDevice} của thiết bị đang được thử nghiệm.

Thông số
device ITestDevice : ITestDevice của lệnh gọi hiện tại.