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 untuk 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

dapatkanScpCommand

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

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

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

extraOptions : Daftar String yang dapat ditambahkan untuk opsi ssh tambahan. bisa menjadi nol.

user String

hostName String : nama host tempat terhubung ke perangkat gce.

remoteFile String : file yang akan diambil pada 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

Kembali
daftar yang mewakili perintah scp untuk perangkat gce.

dapatkanSshCommand

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 String yang dapat ditambahkan untuk opsi ssh tambahan. bisa menjadi nol.

user String

hostName String : nama host tempat terhubung ke perangkat gce.

command String : perintah sebenarnya untuk dijalankan pada perangkat gce.

Kembali
daftar yang mewakili perintah ssh untuk perangkat gce.