RemoteFileUtil
public class RemoteFileUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteFileUtil |
فئة الأداة المساعدة للتعامل مع الملف من مثيل بعيد
ملخص
المقاولين العامة | |
---|---|
RemoteFileUtil () |
الأساليب العامة | |
---|---|
static boolean | doesRemoteFileExist ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath) تحقق من وجود ملف (أو دليل) على المثيل البعيد |
static File | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath) جلب دليل بعيد من المضيف البعيد. |
static boolean | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir) جلب دليل بعيد من المضيف البعيد. |
static File | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath) جلب ملف بعيد في مثيل الحاوية. |
static boolean | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) جلب ملف بعيد في الجهاز أو مثيل الحاوية. |
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) ادفع |
المقاولين العامة
RemoteFileUtil
public RemoteFileUtil ()
الأساليب العامة
هلRemoteFileExist
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
تحقق من وجود ملف (أو دليل) على المثيل البعيد
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions الذي يصف خيارات الجهاز المطلوب استخدامه لجهاز GCE. |
runUtil | IRunUtil : IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remotePath | String : المسار البعيد حيث يمكن العثور على الملف. |
عائدات | |
---|---|
boolean | سواء كان الملف موجودا أم لا |
fetchRemoteDir
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
جلب دليل بعيد من المضيف البعيد.
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions الذي يصف خيارات الجهاز المطلوب استخدامه لجهاز GCE. |
runUtil | IRunUtil : IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteDirPath | String : المسار البعيد حيث يمكن العثور على الدليل. |
عائدات | |
---|---|
File | الدليل الذي تم سحبه ERROR(/File) إذا كان ناجحًا، وإلا فهو فارغ |
fetchRemoteDir
public static boolean fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir)
جلب دليل بعيد من المضيف البعيد.
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions الذي يصف خيارات الجهاز المطلوب استخدامه لجهاز GCE. |
runUtil | IRunUtil : IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteDirPath | String : المسار البعيد حيث يمكن العثور على الدليل. |
localDir | File : الدليل المحلي حيث يتم وضع الملفات المسحوبة. |
عائدات | |
---|---|
boolean | صحيح إذا نجح، خطأ فيما عدا ذلك |
fetchRemoteFile
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
جلب ملف بعيد في مثيل الحاوية.
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions الذي يصف خيارات الجهاز المطلوب استخدامه لجهاز GCE. |
runUtil | IRunUtil : IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteFilePath | String : المسار البعيد حيث يمكن العثور على الملف. |
عائدات | |
---|---|
File | تم سحب الملف إذا نجح، وإلا فهو لاغي |
fetchRemoteFile
public static boolean fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
جلب ملف بعيد في الجهاز أو مثيل الحاوية.
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions الذي يصف خيارات الجهاز المطلوب استخدامه لجهاز GCE. |
runUtil | IRunUtil : IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteFilePath | String : المسار البعيد حيث يمكن العثور على الملف. |
localFile | File : ERROR(/File) حيث سيتم سحب الملف البعيد |
عائدات | |
---|---|
boolean | صحيح إذا نجح، خطأ فيما عدا ذلك |
PushFileToRemote
public static boolean pushFileToRemote (GceAvdInfo remoteInstance, TestDeviceOptions options,scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
ادفع ERROR(/File)
من المضيف المحلي إلى المثيل البعيد
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions الذي يصف خيارات الجهاز المطلوب استخدامه لجهاز GCE. |
scpArgs | |
runUtil | IRunUtil : IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteFilePath | String : المسار البعيد حيث يمكن العثور على الملف. |
localFile | File : ERROR(/File) حيث سيتم سحب الملف البعيد |
عائدات | |
---|---|
boolean | صحيح إذا نجح، خطأ فيما عدا ذلك |