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 ที่มีสถานะและบันทึก