ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
RemoteSshUtil
public
class
RemoteSshUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.device.cloud.RemoteSshUtil
|
ยูทิลิตีสำหรับเรียกใช้คำสั่ง SSH ในอินสแตนซ์ระยะไกล
สรุป
เมธอดสาธารณะ |
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 : คำสั่งที่จะดำเนินการ |
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 : คำสั่งที่จะดำเนินการ |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-03-26 UTC
[null,null,["อัปเดตล่าสุด 2025-03-26 UTC"],[],[]]