GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.cloud.GceRemoteCmdFormatter |
Uzak bir gce cihazına ulaşmak için komutları biçimlendirmeye yönelik 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 cihazından dosya almak için scp komutu oluşturma 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 cihazı için ssh komutu oluşturma yardımcı programı. |
Kamu inşaatçıları
GceRemoteCmdFormatter
public GceRemoteCmdFormatter ()
Genel yöntemler
getScpCommand
public staticgetScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)
Uzak bir gce cihazından dosya almak için scp komutu oluşturma yardımcı programı.
Parametreler | |
---|---|
sshKey | File : ssh anahtarı ERROR(/File) . |
extraOptions | String Listesi. null olabilir. |
user | String |
hostName | String : gce cihazına bağlanılacağı ana bilgisayar adı. |
remoteFile | String : uzak gce cihazına getirilecek dosya. |
localFile | String : uzak dosyanın yerleştirileceği yerel dosya. |
mode | GceRemoteCmdFormatter.ScpMode : yerel dosyayı uzaktan kumandaya mı itiyoruz yoksa uzaktan mı çekiyoruz |
İadeler | |
---|---|
bir gce cihazı için scp komutunu temsil eden bir liste. |
getSshKomutu
public staticgetSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)
Bazı parametrelere dayalı olarak bir gce cihazı için ssh komutu oluşturma yardımcı programı.
Parametreler | |
---|---|
sshKey | File : ssh anahtarı ERROR(/File) . |
extraOptions | String Listesi. null olabilir. |
user | String |
hostName | String : gce cihazına bağlanılacağı ana bilgisayar adı. |
command | String : gce cihazında çalıştırılacak gerçek komut. |
İadeler | |
---|---|
bir gce cihazı için ssh komutunu temsil eden bir liste. |