จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
SSHUtil ระยะไกล
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
|
ช่างก่อสร้างสาธารณะ
SSHUtil ระยะไกล
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) ซึ่งจะบันทึก Stout |
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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-29 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-08-29 UTC"],[],[]]