RemoteFileUtil
public class RemoteFileUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteFileUtil |
Lớp tiện ích để xử lý tệp từ một phiên bản từ xa
Bản tóm tắt
Các nhà xây dựng công cộng | |
---|---|
RemoteFileUtil () |
Phương pháp công khai | |
---|---|
static boolean | doesRemoteFileExist ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath) Kiểm tra xem tệp (hoặc thư mục) có tồn tại trên phiên bản từ xa hay không |
static File | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath) Tìm nạp một thư mục từ xa từ máy chủ từ xa. |
static boolean | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir) Tìm nạp thư mục từ xa từ máy chủ từ xa. |
static File | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath) Tìm nạp một tệp từ xa trong phiên bản vùng chứa. |
static boolean | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) Tìm nạp tệp từ xa trong phiên bản thiết bị hoặc vùng chứa. |
static boolean | pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) Đẩy một |
Các nhà xây dựng công cộng
RemoteFileUtil
public RemoteFileUtil ()
Phương pháp công khai
doesRemoteFileExist
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
Kiểm tra xem tệp (hoặc thư mục) có tồn tại trên phiên bản từ xa hay không
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remotePath | String : Đường dẫn từ xa nơi tìm tệp. |
Lợi nhuận | |
---|---|
boolean | cho dù tệp có tồn tại hay không |
fetchRemoteDir
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
Tìm nạp một thư mục từ xa từ máy chủ từ xa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteDirPath | String : Đường dẫn từ xa nơi tìm thư mục. |
Lợi nhuận | |
---|---|
File | Thư mục được kéo ERROR(/File) nếu thành công, nếu không thì null |
fetchRemoteDir
public static boolean fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir)
Tìm nạp thư mục từ xa từ máy chủ từ xa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteDirPath | String : Đường dẫn từ xa nơi tìm thư mục. |
localDir | File : Thư mục cục bộ nơi đặt các tệp được kéo. |
Lợi nhuận | |
---|---|
boolean | Đúng nếu thành công, Sai nếu không |
fetchRemoteFile
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
Tìm nạp một tệp từ xa trong phiên bản vùng chứa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteFilePath | String : Đường dẫn từ xa nơi tìm tệp. |
Lợi nhuận | |
---|---|
File | Đã kéo được đệ trình nếu thành công, nếu không thì null |
fetchRemoteFile
public static boolean fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
Tìm nạp tệp từ xa trong phiên bản thiết bị hoặc vùng chứa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteFilePath | String : Đường dẫn từ xa nơi tìm tệp. |
localFile | File : ERROR(/File) nơi tệp từ xa sẽ được kéo |
Lợi nhuận | |
---|---|
boolean | Đúng nếu thành công, Sai nếu không |
pushFileToRemote
public static boolean pushFileToRemote (GceAvdInfo remoteInstance, TestDeviceOptions options,scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
Đẩy một ERROR(/File)
từ máy chủ cục bộ đến phiên bản từ xa
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
scpArgs | |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteFilePath | String : Đường dẫn từ xa nơi tìm tệp. |
localFile | File : ERROR(/File) nơi tệp từ xa sẽ được kéo |
Lợi nhuận | |
---|---|
boolean | Đúng nếu thành công, Sai nếu không |
RemoteFileUtil
public class RemoteFileUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteFileUtil |
Lớp tiện ích để xử lý tệp từ một phiên bản từ xa
Bản tóm tắt
Các nhà xây dựng công cộng | |
---|---|
RemoteFileUtil () |
Phương pháp công khai | |
---|---|
static boolean | doesRemoteFileExist ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath) Kiểm tra xem tệp (hoặc thư mục) có tồn tại trên phiên bản từ xa hay không |
static File | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath) Tìm nạp thư mục từ xa từ máy chủ từ xa. |
static boolean | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir) Tìm nạp thư mục từ xa từ máy chủ từ xa. |
static File | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath) Tìm nạp một tệp từ xa trong phiên bản vùng chứa. |
static boolean | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) Tìm nạp tệp từ xa trong phiên bản thiết bị hoặc vùng chứa. |
static boolean | pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) Đẩy một |
Các nhà xây dựng công cộng
RemoteFileUtil
public RemoteFileUtil ()
Phương pháp công khai
doesRemoteFileExist
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
Kiểm tra xem tệp (hoặc thư mục) có tồn tại trên phiên bản từ xa hay không
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remotePath | String : Đường dẫn từ xa nơi tìm tệp. |
Lợi nhuận | |
---|---|
boolean | cho dù tệp có tồn tại hay không |
fetchRemoteDir
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
Tìm nạp một thư mục từ xa từ máy chủ từ xa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteDirPath | String : Đường dẫn từ xa nơi tìm thư mục. |
Lợi nhuận | |
---|---|
File | Thư mục được kéo ERROR(/File) nếu thành công, nếu không thì null |
fetchRemoteDir
public static boolean fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir)
Tìm nạp thư mục từ xa từ máy chủ từ xa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteDirPath | String : Đường dẫn từ xa nơi tìm thư mục. |
localDir | File : Thư mục cục bộ nơi đặt các tệp được kéo. |
Lợi nhuận | |
---|---|
boolean | Đúng nếu thành công, Sai nếu không |
fetchRemoteFile
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
Tìm nạp một tệp từ xa trong phiên bản vùng chứa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteFilePath | String : Đường dẫn từ xa nơi tìm tệp. |
Lợi nhuận | |
---|---|
File | Đã kéo được đệ trình nếu thành công, nếu không thì null |
fetchRemoteFile
public static boolean fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
Tìm nạp tệp từ xa trong phiên bản thiết bị hoặc vùng chứa.
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteFilePath | String : Đường dẫn từ xa nơi tìm tệp. |
localFile | File : ERROR(/File) nơi tệp từ xa sẽ được kéo |
Lợi nhuận | |
---|---|
boolean | Đúng nếu thành công, Sai nếu không |
pushFileToRemote
public static boolean pushFileToRemote (GceAvdInfo remoteInstance, TestDeviceOptions options,scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
Đẩy một ERROR(/File)
từ máy chủ cục bộ đến phiên bản từ xa
Thông số | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo mô tả thiết bị. |
options | TestDeviceOptions : một TestDeviceOptions mô tả các tùy chọn thiết bị sẽ được sử dụng cho thiết bị GCE. |
scpArgs | |
runUtil | IRunUtil : một IRunUtil để thực hiện các lệnh. |
timeout | long : tính bằng mili giây để hoàn tất quá trình tìm nạp |
remoteFilePath | String : Đường dẫn từ xa nơi tìm tệp. |
localFile | File : ERROR(/File) nơi tệp từ xa sẽ được kéo |
Lợi nhuận | |
---|---|
boolean | Đúng nếu thành công, Sai nếu không |