GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.GceRemoteCmdFormatter |
Uzak bir gce aygıtına ulaşmak için komutları biçimlendirmek için yardımcı program sınıfı.
Özet
kamu inşaatçılar | |
---|---|
GceRemoteCmdFormatter () |
Genel yöntemler | |
---|---|
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) Uzak bir gce aygıtından bir dosya almak için bir scp komutu oluşturmaya yarayan yardımcı program. |
static | getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) Bazı parametrelere dayalı olarak bir gce aygıtı için bir ssh komutu oluşturmaya yarayan yardımcı program. |
kamu inşaatçılar
GceRemoteCmdFormatter
public GceRemoteCmdFormatter ()
Genel yöntemler
getScpKomutu
public staticgetScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)
Uzak bir gce aygıtından bir dosya almak için bir scp komutu oluşturmaya yarayan yardımcı program.
parametreler | |
---|---|
sshKey | File : ssh anahtarı ERROR(/File) . |
extraOptions | String Listesi. boş olabilir. |
user | String |
hostName | String : gce cihazına bağlanılacak ana bilgisayar adı. |
remoteFile | String : uzak gce cihazında getirilecek dosya. |
localFile | String : uzak dosyanın yerleştirileceği yerel dosya. |
mode | GceRemoteCmdFormatter.ScpMode : yerel dosyayı uzaktan kumandaya mı gönderiyoruz yoksa uzaktan kumandayı mı çekiyoruz? |
İadeler | |
---|---|
bir gce aygıtı için scp komutunu temsil eden bir liste. |
getSshCommand
public staticgetSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)
Bazı parametrelere dayalı olarak bir gce aygıtı için bir ssh komutu oluşturmaya yarayan yardımcı program.
parametreler | |
---|---|
sshKey | File : ssh anahtarı ERROR(/File) . |
extraOptions | String Listesi. boş olabilir. |
user | String |
hostName | String : gce cihazına bağlanılacak ana bilgisayar adı. |
command | String : gce aygıtında çalıştırılacak asıl komut. |
İadeler | |
---|---|
bir gce aygıtı için ssh komutunu temsil eden bir liste. |