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 שמכיל את הסטטוס והיומנים.