GceRemoteCmdฟอร์แมตเตอร์

public class GceRemoteCmdFormatter
extends Object

java.lang.Object
com.android.tradefed.device.cloud.GceRemoteCmdFormatter


คลาสยูทิลิตี้สำหรับจัดรูปแบบคำสั่งเพื่อเข้าถึงอุปกรณ์ gce ระยะไกล

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

GceRemoteCmdFormatter ()

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

static getScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode) getScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)

ยูทิลิตี้สำหรับสร้างคำสั่ง scp เพื่อดึงไฟล์จากอุปกรณ์ gce ระยะไกล

static getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)

ยูทิลิตี้สำหรับสร้างคำสั่ง ssh สำหรับอุปกรณ์ gce โดยอิงตามพารามิเตอร์บางตัว

ผู้รับเหมาก่อสร้างสาธารณะ

GceRemoteCmdฟอร์แมตเตอร์

public GceRemoteCmdFormatter ()

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

getScpCommand

public static  getScpCommand (File sshKey, 
                 extraOptions, 
                String user, 
                String hostName, 
                String remoteFile, 
                String localFile, 
                GceRemoteCmdFormatter.ScpMode mode)

ยูทิลิตี้สำหรับสร้างคำสั่ง scp เพื่อดึงไฟล์จากอุปกรณ์ gce ระยะไกล

พารามิเตอร์
sshKey File : คีย์ ssh ERROR(/File)

extraOptions : รายการ String ที่สามารถเพิ่มสำหรับตัวเลือก ssh พิเศษ สามารถเป็นโมฆะได้

user String

hostName String : ชื่อโฮสต์ที่จะเชื่อมต่อกับอุปกรณ์ gce

remoteFile String : ไฟล์ที่จะดึงข้อมูลบนอุปกรณ์ gce ระยะไกล

localFile String : ไฟล์ในเครื่องที่จะวางไฟล์ระยะไกล

mode GceRemoteCmdFormatter.ScpMode : ไม่ว่าเราจะพุชไฟล์ในเครื่องไปที่รีโมตหรือดึงรีโมต

การส่งคืน
รายการที่แสดงถึงคำสั่ง scp สำหรับอุปกรณ์ gce

getSshCommand

public static  getSshCommand (File sshKey, 
                 extraOptions, 
                String user, 
                String hostName, 
                String... command)

ยูทิลิตี้สำหรับสร้างคำสั่ง ssh สำหรับอุปกรณ์ gce โดยอิงตามพารามิเตอร์บางตัว

พารามิเตอร์
sshKey File : คีย์ ssh ERROR(/File)

extraOptions : รายการ String ที่สามารถเพิ่มสำหรับตัวเลือก ssh พิเศษ สามารถเป็นโมฆะได้

user String

hostName String : ชื่อโฮสต์ที่จะเชื่อมต่อกับอุปกรณ์ gce

command String : คำสั่งจริงที่จะรันบนอุปกรณ์ gce

การส่งคืน
รายการที่แสดงถึงคำสั่ง ssh สำหรับอุปกรณ์ gce