RemoteSshUtil
public class RemoteSshUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.RemoteSshUtil |
כלי לביצוע פקודות ssh במופעים מרוחקים.
סיכום
בנאים ציבוריים | |
---|---|
RemoteSshUtil () |
שיטות ציבוריות | |
---|---|
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command) בצע פקודה במופע המרוחק באמצעות ssh. |
static CommandResult | remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command) בצע פקודה במופע המרוחק באמצעות ssh. |
בנאים ציבוריים
RemoteSshUtil
public RemoteSshUtil ()
שיטות ציבוריות
remoteSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)
בצע פקודה במופע המרוחק באמצעות ssh.
פרמטרים | |
---|---|
remoteInstance | GceAvdInfo : ה- GceAvdInfo שמתאר את המכשיר. |
options | TestDeviceOptions : TestDeviceOptions המתאר את אפשרויות ההתקן לשימוש עבור התקן GCE. |
runUtil | IRunUtil : IRunUtil לביצוע פקודות. |
timeoutMs | long : באלפית שניות להשלמת האחזור |
stdout | OutputStream : ERROR(/OutputStream) שבה ה-stdout יירשם. |
stderr | OutputStream : ERROR(/OutputStream) שבה ה-stderr יירשם. |
command | String : הפקודה שיש לבצע. |
החזרות | |
---|---|
CommandResult | CommandResult המכילה את הסטטוס והיומנים. |
remoteSshCommandExec
public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)
בצע פקודה במופע המרוחק באמצעות ssh.
פרמטרים | |
---|---|
remoteInstance | GceAvdInfo : ה- GceAvdInfo שמתאר את המכשיר. |
options | TestDeviceOptions : TestDeviceOptions המתאר את אפשרויות ההתקן לשימוש עבור התקן GCE. |
runUtil | IRunUtil : IRunUtil לביצוע פקודות. |
timeoutMs | long : באלפית שניות להשלמת האחזור |
command | String : הפקודה שיש לבצע. |
החזרות | |
---|---|
CommandResult | CommandResult המכילה את הסטטוס והיומנים. |