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)

लोकल होस्ट से रिमोट इंस्टेंस पर ERROR(/File) पुश करना

पब्लिक कंस्ट्रक्टर

RemoteFileUtil

public RemoteFileUtil ()

सार्वजनिक तरीके

doesRemoteFileExist

public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeout, 
                String remotePath)

यह देखना कि रिमोट इंस्टेंस पर कोई फ़ाइल (या डायरेक्ट्री) मौजूद है या नहीं

पैरामीटर
remoteInstance GceAvdInfo: डिवाइस की जानकारी देने वाला GceAvdInfo.

options TestDeviceOptions: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

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: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

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: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

runUtil IRunUtil: निर्देशों को लागू करने के लिए IRunUtil.

timeout long: फ़ेच करने में लगने वाला समय मिलीसेकंड में

remoteDirPath String: वह रिमोट पाथ जहां डायरेक्ट्री मिलती है.

localDir File: वह लोकल डायरेक्ट्री जहां खींची गई फ़ाइलें डाली जाएंगी.

रिटर्न
boolean अगर लेन-देन पूरा हो जाता है, तो True दिखाता है. अगर लेन-देन पूरा नहीं होता है, तो False दिखाता है

fetchRemoteFile

public static File fetchRemoteFile (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeout, 
                String remoteFilePath)

कंटेनर इंस्टेंस में किसी रिमोट फ़ाइल को फ़ेच करना.

पैरामीटर
remoteInstance GceAvdInfo: डिवाइस की जानकारी देने वाला GceAvdInfo.

options TestDeviceOptions: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

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: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

runUtil IRunUtil: निर्देशों को लागू करने के लिए IRunUtil.

timeout long: फ़ेच करने में लगने वाला समय मिलीसेकंड में

remoteFilePath String: वह रिमोट पाथ जहां फ़ाइल मौजूद है.

localFile File: वह लोकल ERROR(/File) जहां रिमोट फ़ाइल को खींचा जाएगा

रिटर्न
boolean अगर लेन-देन पूरा हो जाता है, तो True दिखाता है. अगर लेन-देन पूरा नहीं होता है, तो False दिखाता है

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: GCE डिवाइस के लिए इस्तेमाल किए जाने वाले डिवाइस के विकल्पों के बारे में बताने वाला TestDeviceOptions.

scpArgs : scp कमांड में इस्तेमाल किए जाने वाले अतिरिक्त आर्ग्युमेंट

runUtil IRunUtil: निर्देशों को लागू करने के लिए IRunUtil.

timeout long: फ़ेच करने में लगने वाला समय मिलीसेकंड में

remoteFilePath String: वह रिमोट पाथ जहां फ़ाइल मौजूद है.

localFile File: वह लोकल ERROR(/File) जहां रिमोट फ़ाइल को खींचा जाएगा

रिटर्न
boolean अगर लेन-देन पूरा हो जाता है, तो True दिखाता है. अगर लेन-देन पूरा नहीं होता है, तो False दिखाता है