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 ()

วิธีการสาธารณะ

ระยะไกล SshCommandExec

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

ระยะไกล SshCommandExec

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