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: 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) שחולצה אם הפעולה בוצעה בהצלחה, null אחרת

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 True אם הפעולה בוצעה בהצלחה, False אחרת

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 הקובץ שחולץ אם הפעולה בוצעה בהצלחה, null אחרת

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 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: TestDeviceOptions שמתאר את אפשרויות המכשיר שישמשו את מכשיר GCE.

scpArgs : ארגומנטים נוספים להעברה לפקודה scp

runUtil IRunUtil: IRunUtil להפעלת פקודות.

timeout long: משך הזמן באלפיות השנייה להשלמת האחזור

remoteFilePath String: הנתיב המרוחק שבו נמצא הקובץ.

localFile File: ה-ERROR(/File) המקומי שאליו יועבר הקובץ מרחוק

החזרות
boolean True אם הפעולה בוצעה בהצלחה, False אחרת