RemoteFileUtil
public class RemoteFileUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteFileUtil |
מחלקת שירות לטיפול בקובץ ממופע מרוחק
סיכום
בנאים ציבוריים | |
---|---|
RemoteFileUtil () |
שיטות ציבוריות | |
---|---|
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 ()
שיטות ציבוריות
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 | נכון אם מצליח, לא נכון אחרת |
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 | ה- pulled הוגש אם הצליח, אחרת 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 | נכון אם מצליח, לא נכון אחרת |
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 | נכון אם מצליח, לא נכון אחרת |