Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

GceRemoteCmdFormatter

public class GceRemoteCmdFormatter
extends Object

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


Kelas utilitas untuk memformat perintah untuk menjangkau perangkat gce jarak jauh.

Ringkasan

Konstruktor publik

GceRemoteCmdFormatter ()

Metode publik

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)

Utilitas untuk membuat perintah scp guna mengambil file dari perangkat gce jarak jauh.

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

Utilitas untuk membuat perintah ssh untuk perangkat gce berdasarkan beberapa parameter.

Konstruktor publik

GceRemoteCmdFormatter

public GceRemoteCmdFormatter ()

Metode publik

getScpCommand

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

Utilitas untuk membuat perintah scp guna mengambil file dari perangkat gce jarak jauh.

Parameter
sshKey File : kunci ssh ERROR(/File) .

extraOptions : Daftar ERROR(/String) yang dapat ditambahkan untuk opsi ssh tambahan. bisa nol.

user String

hostName String : nama host tempat terhubung ke perangkat gce.

remoteFile String : file yang akan diambil di perangkat gce jarak jauh.

localFile String : file lokal tempat meletakkan file jarak jauh.

mode GceRemoteCmdFormatter.ScpMode : apakah kita mendorong file lokal ke remote atau menarik remote

Pengembalian
daftar yang mewakili perintah scp untuk perangkat gce.

getSshCommand

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

Utilitas untuk membuat perintah ssh untuk perangkat gce berdasarkan beberapa parameter.

Parameter
sshKey File : kunci ssh ERROR(/File) .

extraOptions : Daftar ERROR(/String) yang dapat ditambahkan untuk opsi ssh tambahan. bisa nol.

user String

hostName String : nama host tempat terhubung ke perangkat gce.

command String : perintah aktual untuk dijalankan di perangkat gce.

Pengembalian
daftar yang mewakili perintah ssh untuk perangkat gce.