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 ()
الأساليب العامة
doRemoteFileExist
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
تحقق مما إذا كان الملف (أو الدليل) موجودًا على المثيل البعيد
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions يصف خيارات الجهاز التي سيتم استخدامها لجهاز GCE. |
runUtil | IRunUtil : a IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remotePath | String : المسار البعيد حيث يمكن العثور على الملف. |
عائدات | |
---|---|
boolean | سواء كان الملف موجودًا أم لا |
إحضار عن بعد
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
إحضار دليل بعيد من المضيف البعيد.
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions يصف خيارات الجهاز التي سيتم استخدامها لجهاز GCE. |
runUtil | IRunUtil : a IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteDirPath | String : المسار البعيد حيث يمكن العثور على الدليل. |
عائدات | |
---|---|
File | الدليل الذي تم سحبه ERROR(/File) إذا نجح ، يكون فارغًا بخلاف ذلك |
إحضار عن بعد
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 : a IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteDirPath | String : المسار البعيد حيث يمكن العثور على الدليل. |
localDir | File : الدليل المحلي حيث يتم وضع الملفات التي تم سحبها. |
عائدات | |
---|---|
boolean | صحيح إذا نجح ، خطأ خلاف ذلك |
إحضار عن بعدالملف
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
إحضار ملف بعيد في مثيل الحاوية.
حدود | |
---|---|
remoteInstance | GceAvdInfo : GceAvdInfo الذي يصف الجهاز. |
options | TestDeviceOptions : TestDeviceOptions يصف خيارات الجهاز التي سيتم استخدامها لجهاز GCE. |
runUtil | IRunUtil : a IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteFilePath | String : المسار البعيد حيث يمكن العثور على الملف. |
عائدات | |
---|---|
File | إذا تم إيداعه تم سحبه بنجاح ، فإنه لاغٍ على خلاف ذلك |
إحضار عن بعدالملف
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 : a 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 : a IRunUtil لتنفيذ الأوامر. |
timeout | long : بالمللي ثانية حتى يكتمل الجلب |
remoteFilePath | String : المسار البعيد حيث يمكن العثور على الملف. |
localFile | File : ERROR(/File) حيث سيتم سحب الملف البعيد |
عائدات | |
---|---|
boolean | صحيح إذا نجح ، خطأ خلاف ذلك |