GceRemoteCmdFormatter

public class GceRemoteCmdFormatter
extends Object

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


Classe di utilità per formattare i comandi per raggiungere un dispositivo gce remoto.

Riepilogo

Costruttori pubblici

GceRemoteCmdFormatter ()

Metodi pubblici

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)

Utilità per creare un comando scp per recuperare un file da un dispositivo gce remoto.

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

Utilità per creare un comando ssh per un dispositivo gce in base ad alcuni parametri.

Costruttori pubblici

GceRemoteCmdFormatter

public GceRemoteCmdFormatter ()

Metodi pubblici

getScpCommand

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

Utilità per creare un comando scp per recuperare un file da un dispositivo gce remoto.

Parametri
sshKey File : la chiave ssh ERROR(/File) .

extraOptions : un elenco di String che può essere aggiunto per opzioni ssh aggiuntive. può essere nullo.

user String

hostName String : il nome host a cui connettersi al dispositivo gce.

remoteFile String : il file da recuperare sul dispositivo gce remoto.

localFile String : il file locale in cui inserire il file remoto.

mode GceRemoteCmdFormatter.ScpMode : se stiamo inviando il file locale al remoto o estraendo il remoto

ritorna
un elenco che rappresenta il comando scp per un dispositivo gce.

getSshCommand

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

Utilità per creare un comando ssh per un dispositivo gce in base ad alcuni parametri.

Parametri
sshKey File : la chiave ssh ERROR(/File) .

extraOptions : un elenco di String che può essere aggiunto per opzioni ssh aggiuntive. può essere nullo.

user String

hostName String : il nome host a cui connettersi al dispositivo gce.

command String : il comando effettivo da eseguire sul dispositivo gce.

ritorna
un elenco che rappresenta il comando ssh per un dispositivo gce.